:root {
    --primary: #0c386d;
    --primary-light: #1a4a85;
    --primary-dark: #082548;
    --secondary: #dc5d49;
    --secondary-light: #e57565;
    --accent: #ee894b;
    --cream: #faf8f5;
    --cream-dark: #f5f1eb;
    --ivory: #fffff8;
    --charcoal: #2d2d2d;
    --charcoal-light: #4a4a4a;
    --gold: #c9a96e;
    --gold-light: #d4b87d;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Hero */
.page-hero {
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(circle at 20% 50%, var(--cream) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--cream);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(250, 248, 245, 0.9);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gold-light);
}

.breadcrumb span {
    color: rgba(250, 248, 245, 0.6);
}

/* Form Container */
.form-page {
    padding: 2rem 0.5rem;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--ivory);
    border: 1px solid rgba(12, 56, 109, 0.08);
    box-shadow: 0 20px 60px rgba(12, 56, 109, 0.08);
    width: 100%;
}

/* Form Body */
.form-body {
    padding: 1rem;
}

/* Messages */
.message {
    display: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.loading {
    display: none;
    text-align: center;
    padding: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.loading.active {
    display: block;
}

/* Section */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-letter {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-full {
    grid-column: 1 / -1;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group label .required {
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream);
    border: 1px solid rgba(12, 56, 109, 0.15);
    color: var(--charcoal);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 56, 109, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
    background: var(--cream-dark);
    color: var(--charcoal-light);
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: #999;
}

.form-group select {
    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 24 24' fill='none' stroke='%230c386d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    margin-top: 0.3rem;
}

/* Document Grid */
.document-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Submit Section */
.form-submit {
    padding: 1rem;
    background: var(--cream-dark);
    border-top: 1px solid rgba(12, 56, 109, 0.1);
}

.form-submit-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-submit p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 1.5rem;
}

.form-submit .required-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.form-submit .required-note .required {
    color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: var(--secondary);
    color: var(--cream);
    border: 2px solid var(--secondary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 93, 73, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--cream);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--cream);
}

.footer-band {
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--gold));
}

.footer-simple {
    padding: 2rem 1rem;
    text-align: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(250, 248, 245, 0.05);
    padding: 10px;
}

.footer-simple p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-simple a {
    color: var(--gold-light);
}

/* Responsive */
@media (min-width: 640px) {
    .page-hero {
        padding: 8rem 2rem 4rem;
    }

    .form-page {
        padding: 4rem 2rem;
    }

    .form-body {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .document-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: auto;
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }

    .btn-secondary {
        margin-left: 1rem;
        margin-top: 0;
    }

    .form-submit {
        padding: 2rem;
    }
}

