* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #050510 50%, #000000 100%);
    min-height: 100vh;
    padding: 10px;
    color: #d0d0d0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #0f0f15;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid #1a1a25;
}

@media (min-width: 768px) {
    .container {
        border-radius: 12px;
    }
}

.container-narrow {
    max-width: 800px;
}

header {
    background: linear-gradient(135deg, #0a0a0f 0%, #050510 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid #1a1a25;
}

@media (min-width: 768px) {
    header {
        padding: 40px 30px;
    }
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

@media (min-width: 768px) {
    .logo {
        height: 60px;
    }
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
}

.tagline {
    font-size: 1.1em;
    opacity: 0.8;
    color: #a5b4fc;
}

main {
    padding: 25px 20px;
    background: #0f0f15;
}

@media (min-width: 768px) {
    main {
        padding: 40px 30px;
    }
}

.domain-display {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #1a1a25;
}

.domain-display h2 {
    font-size: 2em;
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    word-break: break-all;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
    font-weight: 800;
    letter-spacing: 0.5px;
}

.domain-status {
    color: #a5b4fc;
    font-size: 1.1em;
}

.info-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #151520;
    border-radius: 8px;
    border-left: 4px solid #8B5CF6;
    border: 1px solid #1a1a25;
}

.info-section h3 {
    color: #d0d0d0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-section p {
    line-height: 1.6;
    color: #a8a8b8;
    margin-bottom: 10px;
}

.offer-form {
    background: #0f0f15;
}

.offer-form h3 {
    color: #d0d0d0;
    margin-bottom: 25px;
    font-size: 1.5em;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a1a25;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d0d0d0;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #1a1a25;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #151520;
    color: #d0d0d0;
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent zoom on iOS input focus */
@media (max-width: 767px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group textarea {
        font-size: 16px;
    }
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    background: #1a1a25;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.form-group input[readonly] {
    background-color: #1a1a2a;
    cursor: not-allowed;
    color: #a5b4fc;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox styling */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #d0d0d0;
    font-weight: normal;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #8B5CF6;
    background: #151520;
    border: 2px solid #1a1a25;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

.checkbox-label span {
    line-height: 1.5;
}

#captcha-question {
    color: #8B5CF6;
    font-weight: bold;
    font-size: 1.1em;
}

/* reCAPTCHA Enterprise styling */
.recaptcha-info {
    margin: 15px 0;
    padding: 12px;
    background: #151520;
    border-radius: 6px;
    border: 1px solid #1a1a25;
}

.captcha-error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 8px;
    text-align: center;
}

.refresh-captcha:hover {
    background: #7c3aed;
}

.error-message {
    background: #3a1f1f;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b6b;
    border: 1px solid #4a2f2f;
}

.success-message {
    background: #1f3a1f;
    color: #6bff6b;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #6bff6b;
    border: 1px solid #2f4a2f;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

footer {
    background: #0a0a0f;
    padding: 25px 30px;
    text-align: center;
    color: #8a9aac;
    border-top: 2px solid #1a1a25;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Welcome Page Styles */
.welcome-page {
    text-align: center;
}

.welcome-content h2 {
    font-size: 2em;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.welcome-description {
    color: #a8a8b8;
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.domains-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 480px) {
    .domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

.domain-card {
    background: linear-gradient(135deg, #151520 0%, #0f0f15 100%);
    border: 2px solid #1a1a25;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .domain-card {
        border-radius: 12px;
        padding: 30px 25px;
    }
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4), 0 0 20px rgba(255, 0, 255, 0.3);
    border-color: #00ffff;
    background: linear-gradient(135deg, #1a1a25 0%, #151520 100%);
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.domain-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
    opacity: 1;
}

.domain-card-name {
    font-size: 1.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    word-break: break-all;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 30px rgba(255, 0, 255, 0.4);
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.7));
    letter-spacing: 0.3px;
}

.domain-card-tld {
    background: linear-gradient(135deg, #00ff00 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.domain-card-action {
    margin-top: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    transition: transform 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.domain-card:hover .domain-card-action {
    transform: scale(1.05);
}

.domain-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B5CF6;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .domain-display h2 {
        font-size: 1.5em;
        word-break: break-word;
    }

    .welcome-content h2 {
        font-size: 1.5em;
    }

    .info-section {
        padding: 20px;
    }

    .offer-form h3 {
        font-size: 1.3em;
    }

    .domain-card-name {
        font-size: 1.2em;
    }

    footer {
        padding: 20px;
        font-size: 0.85em;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .container {
        max-width: 95%;
    }
}
