/* assets/css/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Gradient background */
    background:
        radial-gradient(circle at top left, #ffe0ed 0, transparent 55%),
        radial-gradient(circle at bottom right, #fce7f3 0, transparent 50%),
        #f5f5f7;
    color: #111827;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* Ornamen blur lembut */
.page-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(149, 25, 66, 0.15), transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(149, 25, 66, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

/* fullwidth-ish untuk desktop */
.card-wide {
    width: 100%;
    max-width: 1120px;
}

.title-main {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
}

.subtitle-main {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #6b7280;
}

.title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

.subtitle {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Layout step 1: 3 kolom */
.layout-step1 {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 8px;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Lebar kolom: info sempit, calendar + time lebih lebar */
.col-info {
    flex: 0 0 260px;
}

.col-calendar {
    flex: 1.4;
}

.col-time {
    flex: 1;
}

/* Info box kiri */
.info-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdf2f7;
    border: 1px solid #f9d0e0;
}

.info-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9f1239;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    margin: 2px 0 8px;
    font-size: 0.9rem;
    color: #374151;
}

/* Section label */
.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

/* Calendar styles */
.calendar {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    background: #f9fafb;
}

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

.calendar-month {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.cal-nav {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6b7280;
}

.cal-nav:hover {
    background: #f3f4f6;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 4px;
}

.calendar-weekdays div {
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cal-cell {
    font-size: 0.85rem;
}

.cal-cell-empty {
    height: 30px;
}

.cal-day {
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    height: 30px;
    width: 30px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day:hover:not(.disabled):not(.selected) {
    background: #fee2e2;
}

.cal-day.disabled {
    opacity: 0.35;
    cursor: default;
}

.cal-day.selected {
    background: #951942;
    color: #ffffff;
}

/* Form & inputs umum */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="date"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: #951942;
}

.help-text {
    font-size: 0.8rem;
    color: #b91c1c;
    margin-top: 4px;
}

/* Time picker */
.time-grid {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.time-slot {
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.time-slot.selected {
    border-color: #951942;
    background: #fdf2f7;
    color: #951942;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.form-actions-bottom {
    margin-top: 20px;
}

.form-actions.space-between {
    justify-content: space-between;
}

.form-actions.vertical {
    flex-direction: column;
    align-items: stretch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100% !important;
}
.cal-nav.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}


.btn-primary {
    background: #951942;
    color: #ffffff;
    border-color: #951942;
    width: 50%;
}

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

.btn-ghost {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error ul {
    margin: 0;
    padding-left: 18px;
}

/* Summary & confirmation (step 2 & 3) */
.summary {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdf2f7;
    border: 1px solid #f9d0e0;
}

.summary h2 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.summary ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

.confirmation {
    text-align: center;
    margin: 16px 0;
}

.confirmation .date {
    font-size: 1rem;
    font-weight: 600;
}

.confirmation .separator {
    margin: 4px 0;
    color: #9ca3af;
}

.confirmation .time {
    font-size: 1rem;
    font-weight: 500;
}

.confirmation .event {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.confirmation .timezone {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* === STEP 2: layout samping-sampingan === */

.step2-layout {
    display: flex;
    gap: 32px;
    margin-top: 12px;
    align-items: flex-start;
}

.step2-summary {
    flex: 0 0 260px;
}

.summary-card {
    height: 100%;
}

/* Form di step 2 dua kolom di desktop */
.step2-form {
    flex: 1;
}

.form-grid {
    display: flex;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

/* Nomor HP full-width */
.form-grid .form-group:nth-last-child(2) {
    grid-column: 1 / -1;
}

/* Actions full width juga */
.step2-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

/* Phone group */
.phone-group {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    background: #ffffff;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fdf2f7;
    border-right: 1px solid #f9d0e0;
}

.phone-country {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9f1239;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fee2e2;
}

.phone-code {
    font-size: 0.9rem;
    font-weight: 500;
    color: #951942;
}

.phone-group input[type="text"] {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 8px 10px;
}

.phone-group input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

/* Override help-text di phone */
.phone-help {
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .page-wrapper {
        padding: 16px;
        align-items: stretch;
    }

    .card-wide {
        max-width: 100%;
        padding: 20px;
    }

    .layout-step1 {
        flex-direction: column;
    }

    .col-info {
        flex-basis: auto;
    }

    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step2-layout {
        flex-direction: column;
    }

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

    .form-grid .form-group:nth-last-child(2),
    .step2-actions {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .card-wide {
        padding: 16px;
    }

    .title-main {
        font-size: 1.3rem;
    }

    .calendar {
        padding: 10px;
    }


    .btn-primary {
        background: #951942;
        color: #ffffff;
        border-color: #951942;
        width: 100%;
    }

    .col {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }
}