/* Form Styles */
.form-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
    min-height: 70vh;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 0.5rem;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

.request-form {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-group input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
}

.field-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.file-item-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.file-item-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-right: 1rem;
}

.file-item-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
}

.file-item-remove:hover {
    color: #b71c1c;
}

.form-actions {
    margin-top: 2.5rem;
    text-align: center;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    border-left: 4px solid #c62828;
}

.form-loading {
    text-align: center;
    padding: 2rem;
    margin-top: 1.5rem;
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-loading p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-header h1 {
        font-size: 2rem;
    }

    .request-form {
        padding: 2rem 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
    }
}


/* Thank You Page */
.thank-you-container {
    background: white;
    padding: 4rem 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    font-weight: bold;
}

.thank-you-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.next-steps {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.confirmation-note {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.confirmation-note p {
    margin-bottom: 0.5rem;
}

.confirmation-note .small-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.thank-you-actions .btn {
    min-width: 220px;
    text-align: center;
}

@media (max-width: 768px) {
    .thank-you-container {
        padding: 3rem 2rem;
    }

    .thank-you-container h1 {
        font-size: 2rem;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Outline button style */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}


/* Inline callout note inside a request form */
.form-note-callout {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}
.form-note-callout strong {
    color: #b27800;
}
