/* Contact Page CSS - Multi-Step Form Redesign */

/* Full Screen Container */
.contact-page {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Gradient Background */
.contact-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            #0a1628 0%,
            #112A46 25%,
            #1a3a5c 50%,
            #112A46 75%,
            #0d1f35 100%);
    z-index: 0;
}

/* Animated Aurora Effect */
.contact-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 20%, rgb(182, 239, 249) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgb(255, 255, 255) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 30%, rgba(89, 230, 255, 0.806) 0%, transparent 45%);
    animation: auroraMove 20s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, 5%) rotate(3deg);
    }
}

/* Left Side - Form Area */
.form-side {
    width: 60%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    padding-top: 120px;
}

/* Right Side - Contact Panel */
.contact-side {
    width: 40%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    background: rgba(255, 255, 255, 0);
    border-left: 1px solid rgba(51, 217, 246, 0.1);
}

.contact-panel {
    text-align: center;
}

.contact-panel h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.079);
    border-radius: 15px;
    border: 1px solid rgba(51, 217, 246, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-item:hover {
    background: rgba(51, 217, 246, 0.127);
    border-color: rgba(51, 217, 246, 0.3);
    transform: translateX(-5px);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-cyan), #59e6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary-dark);
}

.contact-item-text {
    text-align: left;
}

.contact-item-label {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.2rem;
}

.contact-item-value {
    font-size: 1.1rem;
    color: #0d152d;
    font-weight: 500;
}

/* Multi-Step Form Container */
.form-steps-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Individual Step */
.form-step {
    position: absolute;
    margin-top: 50px;
    width: 100%;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-step.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.form-step.exit-up {
    opacity: 0;
    transform: translateY(-100px);
}

/* Step Headings */
.step-greeting {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Name Highlight */
.name-highlight {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Back Button */
.btn-back {
    position: absolute;
    top: -50px;
    left: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: rgba(51, 217, 246, 0.2);
    border-color: var(--color-accent-cyan);
    transform: translateX(-3px);
}

/* Error Messages */
.input-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.step-question {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Form Input Styles */
.step-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.step-input {
    width: 100%;
    max-width: 500px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    font-size: 1.2rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: var(--font-main);
}

.step-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.step-input:focus {
    border-bottom-color: var(--color-accent-cyan);
}

.step-input:focus+.input-line {
    transform: scaleX(1);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), #59e6ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Select Dropdown */
.step-select {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2333d9f6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.step-select:focus {
    border-color: var(--color-accent-cyan);
    background-color: rgba(51, 217, 246, 0.05);
}

.step-select option {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 10px;
}

/* Action Buttons */
.step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary-dark), #1a3c5e);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    background: linear-gradient(135deg, #1a3c5e, var(--color-primary-dark));
}

.btn-step i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-step:hover i {
    transform: translateX(5px);
}

.btn-step.btn-skip {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-step.btn-skip:hover {
    border-color: var(--color-accent-cyan);
    background: rgba(51, 217, 246, 0.1);
    box-shadow: none;
}

.btn-step.btn-submit {
    background: linear-gradient(135deg, var(--color-accent-cyan), #59e6ff);
    color: var(--color-primary-dark);
}


/* Progress Indicator */
.progress-indicator {
    position: fixed;
    bottom: 50px;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.progress-bar-container {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-cyan), #59e6ff);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Info Hint */
.step-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.step-hint i {
    color: var(--color-accent-cyan);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-page {
        flex-direction: column;
    }

    .form-side {
        width: 100%;
        min-height: 70vh;
        padding: 2rem;
        padding-top: 100px;
    }

    .contact-side {
        width: 100%;
        min-height: auto;
        padding: 3rem 2rem;
        border-left: none;
        border-top: 1px solid rgba(51, 217, 246, 0.1);
    }

    .step-greeting {
        font-size: 1.8rem;
    }

    .step-question {
        font-size: 1.5rem;
    }

    .step-input,
    .step-select,
    .input-line {
        max-width: 100%;
    }

    .progress-indicator {
        left: 2rem;
        bottom: 30px;
    }

    .contact-item {
        padding: 1rem 1.5rem;
    }
    .progress-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .form-side {
        padding: 1.5rem;
        padding-top: 90px;
    }

    .step-greeting {
        font-size: 1.5rem;
    }

    .step-question {
        font-size: 1.2rem;
    }

    .btn-step {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-item-value {
        font-size: 1rem;
    }
    .progress-indicator {
        display: none;
    }
}

/* Hide old elements */
.contact-hero,
.contact-info-cards,
.contact-form-section {
    display: none !important;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: 10;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Navbar adjustment for dark background */
.contact-page .navbar:not(.scrolled) .nav-link,
.contact-page .navbar:not(.scrolled) .logo-text {
    color: #fff !important;
}

.contact-page .navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-page .navbar:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
