/* Copied from netlify-form/styles.css */
/* Modern, professional styling for the study notes form */

* {
    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: #333;
    background: linear-gradient(160deg, #f0f4ff 0%, #f5f5f5 40%, #faf5ff 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.notice-section {
    background-color: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-header-with-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-header-with-nav h1 {
    margin: 0;
}

.header-link {
    color: #e0e7ff;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(224, 231, 255, 0.6);
    background: rgba(15, 23, 42, 0.15);
    white-space: nowrap;
}

.header-link:hover {
    background: rgba(15, 23, 42, 0.3);
}

/* Approve / Deny result pages */
.form-header-denied {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.form-header-message {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.action-result {
    padding: 32px 30px;
    text-align: center;
}

.action-result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.action-result-success .action-result-icon {
    background: #d4edda;
    color: #155724;
}

.action-result-denied .action-result-icon {
    background: #f8d7da;
    color: #721c24;
}

.action-result h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: #343a40;
}

.action-result p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.action-result .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-result .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.action-result-message p {
    margin-bottom: 20px;
}

/* Landing page */
.landing-hero {
    background: linear-gradient(135deg, #5b21b6 0%, #667eea 35%, #764ba2 70%, #6366f1 100%);
    color: white;
    padding: 40px 30px 32px;
    position: relative;
}
.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
}

.landing-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.landing-tagline {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #e0e7ff;
}

.landing-subtext {
    font-size: 0.98rem;
    color: #495057;
    max-width: 600px;
}

.landing-hero .landing-subtext {
    color: #cbd5ff;
}

.landing-main {
    padding: 30px;
}

.landing-section {
    margin-bottom: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
}

.landing-section-alt {
    background: linear-gradient(145deg, #f8f9ff 0%, #f3f4f6 50%, #faf5ff 100%);
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.landing-section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #343a40;
}

.why-notes-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}

.why-notes-list li {
    margin-bottom: 8px;
}

.why-notes-list li:last-child {
    margin-bottom: 0;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.landing-card {
    background: white;
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.landing-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #495057;
}

.landing-card p {
    font-size: 0.96rem;
    color: #6c757d;
}

.landing-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.landing-cta.center {
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #4c51bf;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
    background: #eef2ff;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.15);
    color: #e0e7ff;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.3);
}

.steps-list {
    margin-left: 20px;
    color: #495057;
}

.steps-list li {
    margin-bottom: 8px;
}

.landing-subtext.center {
    text-align: center;
}

.landing-section-contact {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    padding: 28px 20px;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 12px;
}

.contact-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #4c51bf;
}

.contact-link-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #128c7e;
}

.miya-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.miya-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.miya-block-text {
    flex: 1;
    min-width: 200px;
}

.miya-block-text p {
    margin: 0 0 8px 0;
    font-size: 0.98rem;
    color: #6c757d;
}

.miya-block-text a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.miya-block-text a:hover {
    text-decoration: underline;
}

.developer-credit {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.developer-credit a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.developer-credit a:hover {
    text-decoration: underline;
}

.notice-contact {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #495057;
}

.notice-contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.notice-contact a:hover {
    text-decoration: underline;
}

.notice-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.notice-section p {
    margin-bottom: 15px;
    color: #6c757d;
}

.notice-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.notice-section li {
    margin-bottom: 8px;
    color: #6c757d;
}

.banking-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.banking-details h4 {
    color: #495057;
    margin-bottom: 12px;
}

.bank-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

.bank-label {
    font-weight: 600;
    color: #6c757d;
}

.bank-value {
    word-break: break-all;
}

.bank-copy-btn {
    border: none;
    background: #eef1ff;
    color: #4c5fd7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.bank-copy-btn:hover {
    background: #4c5fd7;
    color: #fff;
}

.bank-copy-btn.copied {
    background: #28a745;
    color: #fff;
}

form {
    padding: 30px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: #adb5bd;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Module Sections */
.module-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.module-section.active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.module-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.chapters-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.chapters-selection h4 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkbox-grid label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.checkbox-grid input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-grid label:has(input:checked) {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.cost-calculator {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e9ecef;
    position: sticky;
    top: 20px;
}

.cost-calculator h4 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

.cost-display {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

/* File Upload */
.file-upload-container {
    position: relative;
}

.file-upload-area {
    border: 3px dashed #e9ecef;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.file-upload-area p {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.file-upload-area small {
    color: #6c757d;
}

#proofOfPayment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-preview .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview .file-icon {
    font-size: 1.5rem;
}

.file-preview .file-details {
    flex: 1;
}

.file-preview .file-name {
    font-weight: 600;
    color: #495057;
}

.file-preview .file-size {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Total Cost */
.total-cost {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.total-cost h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

#totalCost {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
}

/* Disclaimer */
.disclaimer-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.disclaimer-section h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.disclaimer-content {
    margin-bottom: 20px;
}

.disclaimer-content p {
    margin-bottom: 15px;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    transform: scale(1.3);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    margin-top: 15px;
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chapters-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .cost-calculator {
        position: static;
    }
    
    form {
        padding: 20px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }

    .form-header-with-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid label {
        justify-content: center;
    }

    .banking-details {
        padding: 12px 14px;
        margin-top: 14px;
    }

    .banking-details h4 {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .bank-rows {
        gap: 2px;
    }

    .bank-row {
        grid-template-columns: auto 1fr auto;
        gap: 6px 8px;
        align-items: center;
        min-height: auto;
        padding: 4px 0;
        font-size: 0.85rem;
    }

    .bank-label {
        white-space: nowrap;
    }

    .bank-value {
        min-width: 0;
    }

    .bank-copy-btn {
        justify-self: end;
        margin-top: 0;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

/* Animation for smooth transitions */
.module-section {
    animation: slideIn 0.5s ease-out;
}

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

/* Success states */
.form-group.success input {
    border-color: #28a745;
}

.form-group.error input {
    border-color: #dc3545;
}

