/* =========================
   CONTACT PAGE-SPECIFIC STYLES ONLY
   ========================= */

/* Contact Us Section Container */
#contact-form-section,
#contact-us-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    --section-padding-top: 48px;
    --section-padding-bottom: 48px;
    --section-margin-top: 48px;
    --section-margin-bottom: 0;
    box-sizing: border-box;
}

/* Contact Intro Text */
.contact-intro {
    text-align: center;
    color: #FFD700;
    font-size: 1.15em;
    margin-bottom: 18px;
    padding: 0 2vw;
}

/* Contact Form Animated Background */
.contact-form-animated-bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    margin-bottom: 32px;
    max-width: 600px;
    width: 100%;
}

.contact-form-outer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-animated-bg form,
.contact-form {
    position: relative;
    z-index: 2;
    max-width: 440px;
    margin: 28px auto 0 auto;
    padding: 14px 28px 10px 28px;
    background: #23233B;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,188,212,0.18);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-animated-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: auto;
    max-width: 480px;
    max-height: 480px;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(0.5px) drop-shadow(0 0 16px #00BCD4aa);
}

/* Contact Form Fields */
.form-group,
.form-group-alt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-bottom: 16px;
}

.contact-form label,
#contactForm label {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
.contact-form select,
#contactForm select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #2C2C4A;
    background: #1A1A2E;
    color: #E0E0E0;
    font-size: 1em;
    text-align: center;
    margin-bottom: 0;
}

.contact-form textarea,
#contactForm textarea {
    resize: vertical;
}

.contact-form select,
#contactForm select {
    background: #1A1A2E;
    color: #E0E0E0;
}

/* Success and Error Messages */
.contact-success-message,
.contact-error-message {
    max-width: 380px;
    margin: 32px auto 0 auto;
    padding: 28px 24px 22px 24px;
    background: #23233B;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,188,212,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.contact-success-message svg {
    margin-bottom: 8px;
}

.contact-success-message div {
    color: #FFD700;
    font-size: 1.25em;
    font-weight: 600;
}

.contact-success-message .contact-success-detail {
    color: #B0B0B0;
    font-size: 1.05em;
}

.contact-error-message {
    background: #2C2C4A;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(244,67,54,0.12);
    color: #F44336;
    font-size: 1.08em;
    padding: 20px 18px 16px 18px;
}

#contact-result {
    text-align: center;
    margin-top: 14px;
    font-size: 1em;
}

/* Contact SVG Animation */
.contact-anim-line {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: contactLineDraw 2.2s infinite alternate cubic-bezier(.68,-0.55,.27,1.55);
}
.contact-anim-line:nth-child(5) { animation-delay: 0.2s; }
.contact-anim-line:nth-child(6) { animation-delay: 0.5s; }
.contact-anim-line:nth-child(7) { animation-delay: 0.8s; }
.contact-anim-line:nth-child(8) { animation-delay: 1.1s; }
@keyframes contactLineDraw {
    to { stroke-dashoffset: 0; }
}
.contact-anim-pulse {
    opacity: 0.7;
    stroke-width: 2.5;
    animation: contactPulse 2.8s infinite cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes contactPulse {
    0% { r: 38; opacity: 0.7; }
    50% { r: 48; opacity: 0.15; }
    100% { r: 38; opacity: 0.7; }
}

/* Contact Form Clean Styles */
.contact-form {
    max-width: 440px;
    margin: 28px auto 0 auto;
    padding: 14px 28px 10px 28px;
    background: #23233B;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,188,212,0.18);
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    z-index: 2;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-label {
    color: #FFD700;
    font-weight: 600;
}
.contact-input {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #2C2C4A;
    background: #1A1A2E;
    color: #E0E0E0;
    font-size: 1em;
}
.contact-input:focus {
    outline: 1.5px solid #00BCD4;
}

/* Responsive Styles */
@media (max-width: 700px) {
    #contact-form-section,
    #contact-us-final {
        width: 95% !important;
    }
    .contact-form-animated-bg,
    .contact-form {
        max-width: 99vw !important;
        padding: 16px 6vw 12px 6vw !important;
    }
    .contact-intro {
        font-size: 1em !important;
        padding: 0 2vw !important;
    }
    .contact-animated-svg {
        max-width: 98vw;
        max-height: 98vw;
        min-width: 220px;
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 10px 2vw 8px 2vw !important;
    }
}