/* Contact Page Styles */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-light: #e2e8f0;
    --success-green: #10b981;
    --error-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(51, 65, 85, 0.9) 100%), 
                url('../image/contact.png') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.section-label {
    font-size: 0.9em;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.7;
}

/* Main Contact Section */
.contact-main {
    padding: 80px 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2em;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.05em;
}

/* Form Styling */
.contact-form {
    display: block;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95em;
}

.required {
    color: var(--error-red);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1em;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

select.form-input {
    cursor: pointer;
    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='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline-block;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #bae6fd;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--success-green), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.success-message h3 {
    color: var(--text-dark);
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

.info-header {
    margin-bottom: 30px;
}

.info-header h2 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-header p {
    color: var(--text-light);
    font-size: 1.05em;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.info-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.email-icon {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

.location-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.hours-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.info-details h4 {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-details p,
.info-details a {
    color: var(--text-light);
    font-size: 0.95em;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-details a:hover {
    color: var(--secondary-color);
}

.hours-secondary {
    font-size: 0.9em;
    color: #94a3b8;
}

/* Urgent Contact Box */
.urgent-contact {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: var(--white);
}

.urgent-contact h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
}

.urgent-contact p {
    color: #dbeafe;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 1.5em;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Button Outline */
.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--error-red);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-wrapper {
        position: static;
    }

    .hero-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 40vh;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-row-dual {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-header h2 {
        font-size: 1.6em;
    }

    .section-title {
        font-size: 2em;
    }

    .info-cards {
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .urgent-contact {
        padding: 25px 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1em;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8em;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 1em;
    }

    .info-icon {
        min-width: 45px;
        height: 45px;
    }
}