.contact-hero {
    padding: 100px 0 50px;
    position: relative;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contact-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 247, 255, 0.3));
    animation: floatImage 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

.hero-text {
    text-align: left;
}

.contact-hero .futuristic-text {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #00f7ff;
    margin-top: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.contact-content {
    padding: 50px 0;
    min-height: 60vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Exo 2', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.7;
}

.phone-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.country-code {
    width: 100%;
    flex-shrink: 0;
}

#phone {
    width: 100%;
    flex-grow: 1;
}

/* Update the existing select styles to apply to .country-code */
.form-group .country-code {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.8rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background-color: #1a1a2e;
    color: #fff;
    padding: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, #00f7ff, #00a4ff);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-card i {
    font-size: 2rem;
    color: #00f7ff;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.contact-info-card p {
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #00f7ff;
    transform: translateY(-2px);
}

.auth-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn.active {
    background: linear-gradient(45deg, #00f7ff, #00a4ff);
    border-color: transparent;
}

.auth-forms {
    margin-bottom: 2rem;
}

.auth-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.social-auth {
    margin-bottom: 1.5rem;
}

.google-auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Roboto', 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    transition: all 0.2s ease;
}

.google-auth-btn i {
    font-size: 18px;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.google-auth-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.google-auth-btn:active {
    background-color: #f1f3f4;
    box-shadow: none;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    color: #fff;
    background: #1a1a2e;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.email-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-auth input {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
}

.email-auth button {
    padding: 0.8rem;
    background: linear-gradient(45deg, #00f7ff, #00a4ff);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    animation: slideDown 0.3s ease-out;
}

.auth-message.success {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34c759;
}

.auth-message.error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .contact-form-container {
        padding: 1rem;
        width: 100%;
        overflow: hidden;
    }

    .auth-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-info {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .user-email {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .sign-out-btn {
        padding: 0.3rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 0.6rem;
    }

    .auth-message {
        font-size: 14px;
        padding: 0.8rem;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-text {
        text-align: center;
        order: 1;
    }

    .hero-image {
        order: 2;
        padding: 0 2rem;
    }

    .contact-illustration {
        max-width: 80%;
    }
}

.user-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-email {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.user-email i {
    color: #00f7ff;
}

.sign-out-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sign-out-btn:hover {
    color: #ff3b30;
}

.success-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-dialog.show {
    opacity: 1;
}

.success-content {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(13, 13, 23, 0.95));
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.success-dialog.show .success-content {
    transform: translateY(0);
}

.success-icon {
    font-size: 4rem;
    color: #34c759;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.success-content h3 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-actions a {
    background: linear-gradient(45deg, #00f7ff, #00a4ff);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.success-actions .close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.success-actions .account-btn {
    background: linear-gradient(45deg, #00f7ff, #00a4ff);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.success-actions a:hover,
.success-actions .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .success-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-content h3 {
        font-size: 1.2rem;
    }
}

.user-email-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-email-link:hover {
    color: #00f7ff;
}
