/*
================================================================================
GREEN ACRES - Crown Mellow Sage Theme
================================================================================
*/

:root {
    --ga-primary: #7A8B6E;
    --ga-secondary: #B5C4A1;
    --ga-dark: #4A5544;
    --ga-light: #F4F6F0;
    --ga-accent: #D4A574;
    --ga-blossom: #ffb7c5;
    --ga-text: #3d4a3d;
    --ga-text-light: #6b7a6b;
    --ga-white: #ffffff;
    --ga-footer: #6B7B65;
}

/* Page background */
.t-Body {
    background: linear-gradient(135deg, var(--ga-light) 0%, #E8EDE2 100%) !important;
    min-height: 100vh;
}

/* Remove default APEX header for public pages */
.t-Header {
    background: var(--ga-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.t-Header .t-Header-branding {
    background: var(--ga-white) !important;
}

/* Logo area */
.t-Header .t-Header-logo {
    color: var(--ga-dark) !important;
}

/* Main content area */
.t-Body-contentInner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================================================
   Booking Wizard Styles
   ============================================================================ */

/* Step indicator */
.booking-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.booking-step {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--ga-white);
    color: var(--ga-text-light);
    font-weight: 500;
    position: relative;
}

.booking-step.active {
    background: var(--ga-primary);
    color: var(--ga-white);
}

.booking-step.completed {
    background: var(--ga-secondary);
    color: var(--ga-dark);
}

.booking-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ga-light);
    color: var(--ga-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-step.active .booking-step-number {
    background: var(--ga-white);
    color: var(--ga-primary);
}

.booking-step.completed .booking-step-number {
    background: var(--ga-primary);
    color: var(--ga-white);
}

/* Connector lines between steps */
.booking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: var(--ga-light);
    z-index: 1;
}

.booking-step.completed:not(:last-child)::after {
    background: var(--ga-secondary);
}

/* ============================================================================
   Nursery Selection Cards
   ============================================================================ */

.nursery-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.nursery-card {
    background: var(--ga-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nursery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--ga-secondary);
}

.nursery-card.selected {
    border-color: var(--ga-primary);
    background: var(--ga-light);
}

.nursery-card h3 {
    color: var(--ga-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.nursery-card address {
    color: var(--ga-text-light);
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive cards */
@media (max-width: 768px) {
    .nursery-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Calendar Styles
   ============================================================================ */

.booking-calendar-container {
    background: var(--ga-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.booking-calendar-header h3 {
    color: var(--ga-dark);
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0;
}

.booking-calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.booking-calendar-nav button {
    background: var(--ga-light);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--ga-dark);
    font-weight: 500;
    transition: background 0.2s;
}

.booking-calendar-nav button:hover {
    background: var(--ga-secondary);
}

/* Calendar grid */
.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--ga-text-light);
    padding: 0.5rem;
    font-size: 0.85rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.available {
    background: var(--ga-secondary);
    color: var(--ga-dark);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: var(--ga-primary);
    color: var(--ga-white);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--ga-primary) !important;
    color: var(--ga-white) !important;
    box-shadow: 0 2px 8px rgba(122, 139, 110, 0.4);
}

.calendar-day.unavailable {
    color: #ccc;
    text-decoration: line-through;
}

.calendar-day.past {
    color: #ddd;
}

/* Selected date display */
.selected-date-display {
    background: var(--ga-light);
    border-left: 4px solid var(--ga-primary);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.selected-date-display strong {
    color: var(--ga-dark);
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ga-light);
    font-size: 0.85rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.calendar-legend-dot.available {
    background: var(--ga-secondary);
}

.calendar-legend-dot.unavailable {
    background: #eee;
}

/* ============================================================================
   Contact Details Form
   ============================================================================ */

.contact-form-container {
    background: var(--ga-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.contact-form-container h3 {
    color: var(--ga-dark);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1.5rem;
}

/* APEX form field overrides */
.contact-form-container .t-Form-fieldContainer {
    margin-bottom: 1.25rem;
}

.contact-form-container .t-Form-label {
    color: var(--ga-dark) !important;
    font-weight: 500 !important;
}

.contact-form-container .t-Form-inputContainer input,
.contact-form-container .t-Form-inputContainer textarea {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.contact-form-container .t-Form-inputContainer input:focus,
.contact-form-container .t-Form-inputContainer textarea:focus {
    border-color: var(--ga-blossom) !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.3) !important;
    outline: none !important;
}

/* Two column layout for form fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Confirmation Summary
   ============================================================================ */

.booking-summary {
    background: var(--ga-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.booking-summary h3 {
    color: var(--ga-dark);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ga-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--ga-text-light);
}

.summary-value {
    color: var(--ga-dark);
    font-weight: 500;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.ga-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.ga-btn-primary {
    background: var(--ga-primary);
    color: var(--ga-white);
}

.ga-btn-primary:hover {
    background: var(--ga-dark);
    transform: translateY(-2px);
}

.ga-btn-secondary {
    background: transparent;
    border: 2px solid var(--ga-primary);
    color: var(--ga-primary);
}

.ga-btn-secondary:hover {
    background: var(--ga-primary);
    color: var(--ga-white);
}

/* Override APEX button styles */
.t-Button.ga-btn-primary {
    background: var(--ga-primary) !important;
    color: var(--ga-white) !important;
    border: none !important;
    box-shadow: none !important;
}

.t-Button.ga-btn-primary:hover {
    background: var(--ga-dark) !important;
}

/* Button container */
.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ga-light);
}

.booking-actions-right {
    display: flex;
    gap: 1rem;
}

/* ============================================================================
   Success Message
   ============================================================================ */

.booking-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--ga-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.booking-success-icon {
    width: 80px;
    height: 80px;
    background: var(--ga-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.booking-success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--ga-primary);
}

.booking-success h2 {
    color: var(--ga-dark);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
}

.booking-success p {
    color: var(--ga-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================================
   Page Title
   ============================================================================ */

.booking-page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-page-title h1 {
    color: var(--ga-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.booking-page-title p {
    color: var(--ga-text-light);
}

/* ============================================================================
   Hide default APEX elements we don't need
   ============================================================================ */

/* Hide breadcrumbs on this page */
.booking-page .t-BreadcrumbRegion {
    display: none;
}

/* Hide region titles - we'll use custom HTML */
.booking-page .t-Region-header {
    display: none;
}
