/* ================================================================
   CONTACT PAGE STYLES
   assets/css/contact.css
   ================================================================ */

:root {
    --primary: #1a5d7a;
    --accent: #2a8ba8;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --success: #22c55e;
    --error: #ef4444;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.contact-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #0a2833 0%, #1a5d7a 50%, #2a8ba8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 25px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

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

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

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0 20px 0;
    letter-spacing: -0.5px;
}

.hero-intro {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

/* ================================================================
   CONTACT INFO SECTION
   ================================================================ */

.contact-info-section {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 5vw, 60px);
    background: white;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f5f9 100%);
    padding: clamp(24px, 3vw, 30px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 93, 122, 0.1);
    border-color: var(--accent);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.action-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
    align-items: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 93, 122, 0.3);
}

.action-btn i {
    margin-right: 6px;
}

/* ================================================================
   SECTION HEADING
   ================================================================ */

.section-heading {
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 40px);
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* ================================================================
   LOCATIONS SECTION
   ================================================================ */

.locations-section {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 5vw, 60px);
    background: var(--light-bg);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(24px, 3vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: white;
    padding: clamp(24px, 3vw, 30px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 93, 122, 0.12);
    border-color: var(--accent);
}

.location-name {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
}

.location-detail {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.location-detail strong {
    color: var(--primary);
    font-weight: 600;
}

.location-map {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    height: 280px;
}

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

/* ================================================================
   CONTACT FORM SECTION
   ================================================================ */

.contact-form-section,
.enquiry-section {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 5vw, 60px);
    background: white;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: clamp(30px, 4vw, 40px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--error);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 139, 168, 0.1);
    background: white;
}

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

.form-submit,
.form-submit-btn {
    display: block;
    width: 100%;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover,
.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 93, 122, 0.3);
}

.form-submit:active,
.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit:disabled,
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-help {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 93, 122, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   SUCCESS & ERROR MESSAGES
   ================================================================ */

.form-message {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

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

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.2rem;
}

/* ================================================================
   ADDITIONAL CONTACT OPTIONS
   ================================================================ */

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-top: clamp(30px, 5vw, 40px);
}

.option-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.option-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 93, 122, 0.1);
}

.option-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.option-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.option-text {
    font-size: 0.9rem;
    color: #666;
}

/* ================================================================
   ADMISSIONS CTA SECTION
   ================================================================ */

.admissions-cta-section {
    padding: clamp(45px, 5vw, 60px) clamp(20px, 5vw, 60px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    margin: 0 0 24px 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 768px) {
    .contact-hero {
        min-height: 300px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 250px;
    }

    .hero-heading {
        font-size: 1.5rem;
    }

    .hero-intro {
        font-size: 0.9rem;
    }

    .info-card,
    .location-card {
        padding: 20px;
    }

    .form-container {
        padding: 20px;
    }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

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

.contact-info-section .info-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.contact-info-section .info-card:nth-child(1) { animation-delay: 0.1s; }
.contact-info-section .info-card:nth-child(2) { animation-delay: 0.2s; }
.contact-info-section .info-card:nth-child(3) { animation-delay: 0.3s; }

.locations-grid .location-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.locations-grid .location-card:nth-child(1) { animation-delay: 0.1s; }
.locations-grid .location-card:nth-child(2) { animation-delay: 0.2s; }
.locations-grid .location-card:nth-child(3) { animation-delay: 0.3s; }

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
    .contact-hero,
    .contact-form-section {
        display: none;
    }

    .location-map iframe {
        height: 400px;
    }
}
