:root {
    --bg-color: #fcfbf8;
    /* Warm Cream */
    --surface-color: #ffffff;

    --text-primary: #1c1c1c;
    --text-secondary: #5e5e5e;

    /* Editorial Palette */
    --accent-color: #2E5C55;
    /* Deep Green */
    --accent-light: #E7EFE9;
    --accent-pop: #D9534F;
    /* Terracotta for errors/badges */

    --border-color: #e6e4dc;
    --input-bg: #ffffff;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.05);

    --font-heading: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 3rem 1.5rem;
    z-index: 1;
    position: relative;
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 120px;
    height: auto;
    mix-blend-mode: multiply;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 600;
    /* SemiBold */
    font-variation-settings: "SOFT" 100, "WONK" 0;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.form-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
    font-weight: 400;
}

/* Card Style - Editorial Paper */
.glass-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    /* SLightly tighter corners */
    padding: 3.5rem;
    box-shadow: var(--shadow-card);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 0;
    /* Removed underline for cleaner look */
}

.section-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Inputs */
.input-group {
    margin-bottom: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.required {
    color: var(--accent-pop);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg);
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    /* Classic radius */
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

input::placeholder {
    color: #a0a0a0;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #b0b0b0;
    background: #fafafa;
}

.radio-option:has(input:checked) {
    border-color: var(--accent-color);
    background: var(--accent-light);
    color: var(--accent-color);
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    height: 18px;
    width: 18px;
    border: 1.5px solid #bdc3c7;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.radio-option:has(input:checked) .radio-custom {
    border-color: var(--accent-color);
}

.radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-option input:checked~.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background: #244a42;
    /* Darker Green */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 92, 85, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Error Messages */
.error-message {
    color: var(--accent-pop);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.input-group.error input {
    border-color: var(--accent-pop);
    background: #fffafa;
}

.input-group.error .error-message,
.form-section.error .error-message {
    display: block;
}

/* Success Message */
.hidden {
    display: none !important;
}

.success-message {
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.4s ease-out;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-message h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.form-footer {
    text-align: center;
    margin-top: 3rem;
    color: #888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .glass-form {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 2rem;
    }

    .radio-group.horizontal {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
/* New Brand Wordmark - Sexy/Editorial Style */
.brand-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-color);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(46, 92, 85, 0.2);
    transition: all 0.3s ease;
}

.brand-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 92, 85, 0.3);
    letter-spacing: 0.5em;
}


/* Custom Scheduler */
.scheduler-container {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.scheduler-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-slot {
    padding: 0.6rem 0;
    background: #f0f0f0;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 500;
}

.time-slot:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.02);
}

.time-slot.booked {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.time-zone-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* Monthly Calendar Styles */
.calendar-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.current-month {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.month-nav {
    cursor: pointer;
    padding: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
    user-select: none;
}

/* Grid */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.calendar-grid-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    justify-items: center;
}

.cal-date {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #333;
    cursor: default;
    transition: all 0.2s;
}

.cal-date.available {
    color: var(--accent-color);
    background: rgba(46, 92, 85, 0.1);
    cursor: pointer;
    font-weight: 600;
}

.cal-date.available:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}

.cal-date.selected {
    background: var(--accent-color);
    color: white;
}

.cal-date.empty {
    background: transparent;
    cursor: default;
}

/* Time Selector Slide-down */
.time-selector {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: none; /* hidden by default */
    animation: slideDown 0.3s ease-out;
}

.time-selector.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Utility Spacing */
.mt-large {
    margin-top: 2.5rem !important;
}
