@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-color: #FCFBF8;
    --card-bg: #FFFFFF;
    --secondary-bg: #F4EFE6;
    --accent-gold: #A67B48;
    --accent-gold-dark: #8C6335;
    --text-main: #1a1a2e;
    --text-muted: #5a5a6e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'EB Garamond', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

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

header {
    text-align: center;
    margin-bottom: 50px;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    font-weight: 600;
}

h1 {
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.tagline {
    color: var(--accent-gold);
    font-style: italic;
    font-size: 1.2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(166, 123, 72, 0.3);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Cinzel', serif;
}

input[type="text"], input[type="email"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 12px;
    background: #FCFBF8;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: var(--text-main);
    box-sizing: border-box;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 5px rgba(166, 123, 72, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-gold);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-gold-dark);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge {
    display: inline-block;
    background: var(--secondary-bg);
    color: var(--accent-gold);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* --- WEASYPRINT PDF STYLES --- */
@page {
    size: A4;
    margin: 2.5cm 2cm;
    @bottom-center {
        content: "The Old Sage | Karmic Architecture";
        font-family: 'Cinzel', serif;
        font-size: 9pt;
        color: #A67B48;
    }
    @bottom-right {
        content: counter(page);
        font-family: 'EB Garamond', serif;
        font-size: 10pt;
        color: #5a5a6e;
    }
}

@page :first {
    margin: 0;
    @bottom-center { content: none; }
    @bottom-right { content: none; }
}

.cover-page {
    text-align: center;
    padding-top: 30%;
    page-break-after: always;
}

.cover-page img.logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.page-break {
    page-break-before: always;
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}