/* Contact Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background: linear-gradient(180deg, #E8F0FE 0%, #F8FAFC 50%, #E8F0FE 100%);
    color: var(--slate-900);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ensure all text elements use Fira Sans */
* {
    font-family: 'Fira Sans', sans-serif;
}

/* Header and Footer styles moved to shared.css */

/* Contact page specific header override */
.header {
    background: var(--blue-900);
    border-bottom: 1px solid rgba(147, 197, 253, 0.2);
}

.header.scrolled {
    background: var(--blue-900);
}

/* Contact Main Section */
.contact-main {
    min-height: 100vh;
    padding: 120px 0 60px 0;
    position: relative;
    z-index: 2;
}

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

/* Contact Intro */
.contact-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.contact-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 2rem;
    padding: 1.5rem 3rem;
    border: 3px solid var(--blue-300);
    border-radius: 60px;
    display: inline-block;
    background: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
}

.contact-intro-text {
    font-size: 1.1rem;
    color: var(--slate-900);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-intro-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro-list li {
    font-size: 1rem;
    color: var(--slate-900);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-style: italic;
}

.contact-intro-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue-900);
    font-size: 1.5rem;
    font-style: normal;
}

.contact-intro-footer {
    font-size: 1rem;
    color: var(--slate-900);
    line-height: 1.7;
    margin-top: 2rem;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: white;
    border: 2px solid var(--blue-300);
    border-radius: 20px;
    padding: 3rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-900);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid #E0E7FF;
    border-radius: 8px;
    background: white;
    color: var(--slate-900);
    font-size: 1rem;
    font-family: 'Fira Sans', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    line-height: 1.5;
}

.form-textarea {
    height: auto;
    min-height: 120px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-300);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23334155' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.submit-button {
    background: var(--blue-200);
    color: var(--blue-900);
    border: 2px solid var(--blue-300);
    padding: 1.2rem 3.5rem;
    border-radius: 30px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: var(--blue-300);
    color: var(--blue-900);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.4);
    border-color: var(--blue-400);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* Form Validation Styles */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #EF4444;
    background: #FEF2F2;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    margin: 0 auto 1.5rem auto;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

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

.success-icon svg {
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.3));
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--slate-700);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-close-btn {
    background: var(--blue-200);
    color: var(--blue-900);
    border: 2px solid var(--blue-300);
    padding: 1rem 3rem;
    border-radius: 30px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.success-close-btn:hover {
    background: var(--blue-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

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

/* Footer styles moved to shared.css */

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-main-title {
        font-size: 2.5rem;
        padding: 1.2rem 2rem;
        border-radius: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer responsive styles moved to shared.css */
}

@media (max-width: 768px) {
    /* Header responsive styles moved to shared.css */

    .contact-main {
        padding: 100px 0 40px 0;
    }

    .contact-main-title {
        font-size: 2rem;
        padding: 1rem 1.5rem;
        border-radius: 40px;
    }

    .contact-intro-text {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .submit-button {
        width: 100%;
        max-width: 350px;
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* Footer responsive styles moved to shared.css */
}

@media (max-width: 480px) {
    /* Header responsive styles moved to shared.css */

    .contact-main-title {
        font-size: 1.8rem;
        padding: 0.9rem 1.2rem;
        border-radius: 35px;
        border-width: 2px;
    }

    .contact-intro-text {
        font-size: 0.95rem;
    }

    .contact-intro-list li {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .submit-button {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Footer responsive styles moved to shared.css */
}
