/* ====================== YP TUTORING - PREMIUM NOTEBOOK THEME ====================== */
:root {
    --navy: #102A43;
    --gold: #D6A94A;
    --cream: #FFFDF8;
    --beige: #F7F1E5;
    --teal: #3C7F86;
    --text: #243447;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #e8d9c0;
    color: var(--text);
    line-height: 1.7;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Notebook Wrapper */
.notebook-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--cream);
    border: 12px solid #2c2c2c;
    border-radius: 8px 8px 40px 8px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

/* Spiral Binding */
.spiral-binding {
    position: absolute;
    left: 38px;
    top: 0;
    bottom: 0;
    width: 18px;
    background: repeating-linear-gradient(
        90deg,
        #333 0px,
        #333 4px,
        transparent 4px,
        transparent 14px
    );
    z-index: 10;
    box-shadow: inset 3px 0 6px rgba(0,0,0,0.3);
}

.spiral-binding::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    bottom: 60px;
    width: 6px;
    background: #ddd;
    transform: translateX(-50%);
    border-radius: 50%;
}

/* Header */
.notebook-header {
    background: var(--beige);
    border-bottom: 3px solid var(--navy);
    padding: 18px 60px 18px 80px;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

/* Logo */
.logo img {
    height: 90px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

/* Navigation Tabs */
.tab-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    background: #e8d9c0;
    border: 3px solid var(--navy);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    top: 3px;
    white-space: nowrap;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--cream);
    top: 0;
    box-shadow: 0 -4px 0 var(--gold);
}

/* Notebook Page */
.notebook-page {
    padding: 80px 80px 60px 100px;
    background: 
        linear-gradient(transparent 0%, transparent 29px, rgba(60,127,134,0.08) 29px, rgba(60,127,134,0.08) 30px),
        linear-gradient(90deg, transparent 0%, transparent 29px, rgba(60,127,134,0.06) 29px, rgba(60,127,134,0.06) 30px);
    background-size: 100% 30px, 30px 100%;
    min-height: 600px;
    position: relative;
}

/* Typography */
h1.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--navy);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 12px;
    display: inline-block;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 24px;
}

.hero-subheading {
    font-size: 22px;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-gold {
    display: inline-block;
    padding: 14px 32px;
    border: 3px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 12px;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

.btn-primary:hover {
    background: #1a3f5f;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: #c89a3a;
}

/* Cards */
.method-card, .program-card {
    background: white;
    border: 4px solid var(--navy);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 8px 8px 0 rgba(16,42,67,0.1);
}

/* Programs Grid - Maximum 2 columns */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.program-card:hover {
    transform: translateY(-8px);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-weight: 600;
    color: var(--navy);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 3px solid var(--navy);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.05rem;
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
    width: 100%;
    border-color: var(--teal);
}

.required {
    color: #c44;
    font-size: 0.9rem;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #666;
    border-color: #666;
}

/* Contact Form Enhancements */
.contact-form select {
    padding: 12px 16px;
    border: 3px solid var(--navy);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.05rem;
    background: white;
    width: 100%;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 20px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
}

/* Footer */
.notebook-footer {
    background: var(--beige);
    padding: 30px 80px 30px 100px;
    border-top: 3px solid var(--navy);
    font-size: 0.95rem;
    text-align: center;
}

.seo-footer {
    margin: 12px 0;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .header-content {
        gap: 20px;
    }
    .logo img {
        height: 72px;
    }
    .notebook-page {
        padding: 60px 40px 40px 70px;
    }
    .hero-headline {
        font-size: 42px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        padding: 28px;
    }
}

/* Uniform Contact Page Styling */
.contact-content {
    max-width: 860px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

/* Make sure form elements match other page typography */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 3px solid var(--navy);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.05rem;
    background: white;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
    border-color: var(--teal);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 20px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
}

.required {
    color: #c44;
    font-size: 0.9rem;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #666;
    border-color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Form Group & Inline Errors */
.form-group {
    margin-bottom: 8px;
}

.error-message {
    display: block;
    color: #c44;
    font-size: 0.95rem;
    margin-top: 6px;
    min-height: 1.2em;
    font-style: italic;
}

/* Highlight invalid fields */
input.invalid,
select.invalid,
textarea.invalid {
    border-color: #c44 !important;
    background-color: #fff0f0;
}

.radio-group.invalid {
    border: 2px solid #c44;
    padding: 10px;
    border-radius: 4px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

/* ====================== SUCCESS MODAL ====================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 42, 67, 0.75);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #FFFDF8;
    border: 6px solid var(--navy);
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-check {
    display: inline-block;
    width: 70px;
    height: 70px;
    background: var(--gold);
    color: var(--navy);
    font-size: 42px;
    font-weight: bold;
    line-height: 70px;
    border-radius: 50%;
    border: 5px solid var(--navy);
}

.modal h2 {
    color: var(--navy);
    margin: 15px 0 12px 0;
    font-family: 'Playfair Display', serif;
}

.modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 10px;
}

.modal button {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
}
