/* Raya Studio Booking System - Modern Styling */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --raya-primary: #1A73E8;
    --raya-secondary: #0F5CCF;
    --raya-accent: #E8F0FE;
    --raya-dark: #1F2933;
    --raya-light: #F5F7FB;
    --raya-green: #12B76A;
    --raya-red: #EF4444;
    --raya-blue: #1A73E8;
    --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.10);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at 20% 20%, #f3f6fb 0%, #f9fafb 40%, #ffffff 100%);
    color: var(--raya-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.page-hero {
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.hero-text {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(212,165,116,0.18), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(232,213,183,0.25), transparent 40%);
    pointer-events: none;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0 0.75rem;
    color: var(--raya-dark);
    position: relative;
    z-index: 1;
}

.hero-text p {
    max-width: 640px;
    color: #5a5a5a;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: var(--raya-accent);
    color: var(--raya-primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.btn-ghost {
    background: white;
    color: var(--raya-primary);
    border: 2px solid var(--raya-accent);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--raya-accent);
    color: var(--raya-dark);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat {
    background: var(--raya-light);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0e6da;
}

.stat-value {
    display: block;
    font-weight: 800;
    color: var(--raya-primary);
    font-size: 1.05rem;
}

.stat-label {
    color: #6b6b6b;
    font-size: 0.9rem;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-inner {
    background: linear-gradient(145deg, #ffffff 0%, #f8f2ea 100%);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0e6da;
    width: 100%;
}

.hero-card-inner .eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--raya-primary);
    margin-bottom: 0.25rem;
}

.hero-card-inner h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.hero-card-inner .subtext {
    color: #6b6b6b;
    margin-bottom: 1.2rem;
}

.btn-full {
    width: 100%;
}

.watermark {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.9rem;
    color: rgba(58, 58, 58, 0.7);
    letter-spacing: 0.2px;
}

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

/* Header */
.header {
    background: #ffffff;
    color: var(--raya-dark);
    padding: 1.5rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 144px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--raya-dark);
}

.brand-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* Main Content */
.main-content {
    padding: 2rem 0 3rem;
}

/* Calendar Section */
.progress-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.progress-steps {
    display: flex;
    gap: 0.35rem;
}

.step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #6b7280;
    background: #fff;
}

.step.active {
    border-color: var(--raya-primary);
    color: var(--raya-primary);
    background: var(--raya-accent);
}

.progress-label {
    font-weight: 600;
    color: #4b5563;
}

.calendar-section {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    border: 1px solid #e8edf3;
}

.calendar-section h2 {
    color: var(--raya-dark);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    text-align: left;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

/* Calendar */
.calendar {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

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

.calendar-nav-btn {
    background: white;
    color: var(--raya-dark);
    border: 1px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    border-color: var(--raya-primary);
    color: var(--raya-primary);
}

.calendar-month {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--raya-dark);
}

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

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    color: #6b7280;
    padding: 0.35rem;
    font-size: 0.85rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    background: white;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    border-color: var(--raya-primary);
    color: var(--raya-primary);
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

.calendar-day.selected {
    background: var(--raya-primary);
    color: white;
    border-color: var(--raya-primary);
    box-shadow: 0 8px 16px rgba(26, 115, 232, 0.2);
}

.calendar-day.today {
    border: 1px solid var(--raya-primary);
    color: var(--raya-primary);
    background: var(--raya-accent);
    font-weight: 800;
}

/* Slots Section */
.slots-section {
    margin-top: 1rem;
}

.slots-section h3 {
    color: var(--raya-dark);
    font-weight: 800;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.slot-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slot-card:hover:not(.disabled):not(.selected) {
    border-color: var(--raya-primary);
    color: var(--raya-primary);
    box-shadow: var(--shadow-sm);
}

.slot-card.selected {
    background: var(--raya-primary);
    color: white;
    border-color: var(--raya-primary);
    box-shadow: var(--shadow-md);
}

.slot-card.disabled {
    background: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
    border-style: dashed;
}

.slot-card.booked {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
    box-shadow: var(--shadow-sm);
}

.slot-card.blocked {
    background: #fff1f2;
    color: var(--raya-red);
    border-color: #fecdd3;
}

.slot-time {
    font-weight: 800;
    font-size: 1.02rem;
}

.slot-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .header {
        padding: 1rem 0;
    }

    .brand-logo {
        width: 120px;
        height: 48px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .calendar-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .booking-form-section {
        padding: 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .progress-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-section {
        padding: 1.2rem;
    }

    .slot-card {
        padding: 0.65rem 0.45rem;
    }

    .btn,
    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* Booking Form */
.booking-form-section {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.booking-form-section h2 {
    color: var(--raya-dark);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--raya-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--raya-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

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

.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--raya-light);
}

.file-upload-label:hover {
    border-color: var(--raya-primary);
    background: rgba(212, 165, 116, 0.08);
}

.file-upload-label span {
    color: var(--raya-primary);
    font-weight: 600;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.btn {
    padding: 1rem 2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--raya-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Page */
.success-page {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--raya-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.success-page h1 {
    color: var(--raya-primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.receipt {
    background: var(--raya-light);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    font-weight: 600;
    color: var(--raya-dark);
}

.receipt-value {
    color: var(--raya-primary);
    font-weight: 700;
}

.booking-id {
    font-size: 1.5rem;
    color: var(--raya-primary);
    font-weight: 800;
    margin: 1rem 0;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out;
}

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

.alert-success {
    background: #e8f5e9;
    color: var(--raya-green);
    border-left: 4px solid var(--raya-green);
}

.alert-error {
    background: #ffebee;
    color: var(--raya-red);
    border-left: 4px solid var(--raya-red);
}

.alert-info {
    background: #e3f2fd;
    color: var(--raya-blue);
    border-left: 4px solid var(--raya-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .calendar-section,
    .booking-form-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

