/* Simple Booking Calendar — Branded Frontend */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');

.sbc-wrap {
    max-width: 100%;
    font-family: 'Rubik', sans-serif;
    color: #242424;
    line-height: 1.6
}

.sbc-wrap *,
.sbc-wrap *::before,
.sbc-wrap *::after {
    box-sizing: border-box
}

/* Calendar */
.sbc-calendar {
    background: #fff;
    border-bottom: 1px solid rgba(183, 110, 121, .2);
    border-radius: 0;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(183, 110, 121, .08)
}

.sbc-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px
}

.sbc-cal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #242424;
    letter-spacing: .3px
}

.sbc-nav {
    background: none !important;
    border: 1px solid rgba(183, 110, 121, .25) !important;
    border-radius: 10px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
    cursor: pointer !important;
    color: #b76e79 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all .2s !important
}

.sbc-nav:hover {
    background: #b76e79 !important;
    color: #fff !important;
    border-color: #b76e79 !important
}

.sbc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px
}

.sbc-weekdays span {
    font-size: 11px;
    font-weight: 700;
    color: #b76e79;
    text-transform: uppercase;
    letter-spacing: .8px
}

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

.sbc-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: default;
    transition: all .2s;
    user-select: none
}

.sbc-day.sbc-empty {
    visibility: hidden
}

.sbc-day.sbc-today .sbc-day-num {
    font-weight: 800;
    color: #d4af37
}

.sbc-day.sbc-available {
    background: rgba(183, 110, 121, .06);
    color: #b76e79;
    cursor: pointer
}

.sbc-day.sbc-available:hover {
    background: rgba(183, 110, 121, .15);
    border-color: #b76e79
}

.sbc-day.sbc-available.sbc-day-selected {
    background: #b76e79;
    color: #fff;
    border-color: #b76e79
}

.sbc-day.sbc-full {
    background: rgba(192, 57, 43, .06);
    color: #ccc
}

.sbc-day.sbc-unavailable {
    color: #ddd
}

.sbc-day .sbc-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 3px
}

.sbc-day.sbc-available .sbc-day-dot {
    background: #5a8a5e
}

.sbc-day.sbc-available.sbc-day-selected .sbc-day-dot {
    background: #fff
}

.sbc-day.sbc-full .sbc-day-dot {
    background: #c0392b
}

.sbc-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(183, 110, 121, .1)
}

.sbc-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999
}

.sbc-ldot {
    width: 8px;
    height: 8px;
    border-radius: 50%
}

.sbc-ldot-avail {
    background: #5a8a5e
}

.sbc-ldot-full {
    background: #c0392b
}

.sbc-ldot-off {
    background: #ccc
}

/* Slots */
.sbc-slots {
    background: #fff;
    border-bottom: 1px solid rgba(183, 110, 121, .2);
    border-radius: 0;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(183, 110, 121, .08)
}

.sbc-slots h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #242424
}

.sbc-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px
}

.sbc-slot-btn {
    padding: 11px 8px !important;
    border: 1px solid rgba(183, 110, 121, .2) !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all .2s !important;
    color: #333 !important
}

.sbc-slot-btn:hover {
    border-color: #b76e79 !important;
    background: rgba(183, 110, 121, .06) !important;
    color: #b76e79 !important
}

.sbc-slot-btn.sbc-slot-selected {
    background: linear-gradient(135deg, #b76e79, #c4868f) !important;
    color: #fff !important;
    border-color: #b76e79 !important
}

/* Form */
.sbc-form {
    background: #fff;
    padding: 28px;
}

.sbc-form h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #242424
}

.sbc-sel-info {
    color: #b76e79;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 22px
}

.sbc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.sbc-fw {
    grid-column: 1/-1
}

.sbc-f label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #b76e79;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.sbc-req {
    color: #c0392b
}

.sbc-hint {
    font-weight: 400;
    color: #999;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0
}

.sbc-f input[type="text"],
.sbc-f input[type="email"],
.sbc-f input[type="tel"],
.sbc-f textarea,
.sbc-f select {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(183, 110, 121, .25) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: 'Rubik', sans-serif !important;
    color: #242424 !important;
    transition: all .2s !important;
    background: #fff !important
}

.sbc-f input:focus,
.sbc-f textarea:focus,
.sbc-f select:focus {
    outline: none !important;
    border-color: #b76e79 !important;
    box-shadow: 0 0 0 3px rgba(183, 110, 121, .1) !important
}

.sbc-f textarea {
    min-height: 80px !important;
    max-height: 80px;
    resize: none !important;
    border-radius: 10px !important
}

.sbc-phone {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    border: 1px solid rgba(183, 110, 121, .25) !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: all .2s !important
}

.sbc-phone:focus-within {
    border-color: #b76e79 !important;
    box-shadow: 0 0 0 3px rgba(183, 110, 121, .1) !important
}

.sbc-phone select {
    border: none !important;
    border-right: 1px solid rgba(183, 110, 121, .2) !important;
    border-radius: 0 !important;
    padding: 11px 8px 11px 12px !important;
    font-size: 13px !important;
    color: #242424 !important;
    background: rgba(183, 110, 121, .03) !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 115px !important;
    flex-shrink: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: 'Rubik', sans-serif !important
}

.sbc-phone input {
    border: none !important;
    border-radius: 0 !important;
    padding: 11px 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 14px !important;
    font-family: 'Rubik', sans-serif !important;
    color: #242424 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important
}

/* Projects */
.sbc-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px
}

.sbc-proj-card {
    border: 2px solid rgba(183, 110, 121, .15);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    position: relative
}

.sbc-proj-card:hover {
    border-color: #b76e79;
    box-shadow: 0 2px 12px rgba(183, 110, 121, .15)
}

.sbc-proj-card.selected {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px #d4af37
}

.sbc-proj-card.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    background: #d4af37;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center
}

.sbc-proj-card.disabled {
    opacity: .35;
    cursor: not-allowed
}

.sbc-proj-card img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block
}

.sbc-proj-noimg {
    width: 100%;
    height: 95px;
    background: rgba(183, 110, 121, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px
}

.sbc-proj-name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sbc-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden
}

.sbc-submit {
    margin-top: 20px !important;
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #d4af37, #c9a020) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all .2s !important;
    font-family: 'Rubik', sans-serif !important;
    letter-spacing: .3px !important;
    text-transform: uppercase !important
}

.sbc-submit:hover {
    background: linear-gradient(135deg, #c9a020, #b8930e) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, .3) !important
}

.sbc-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important
}

.sbc-msg {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none
}

.sbc-msg.sbc-msg-success {
    display: block;
    background: rgba(183, 110, 121, .08);
    color: #8a4a53;
    border: 1px solid rgba(183, 110, 121, .2)
}

.sbc-msg.sbc-msg-error {
    display: block;
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #f5c6c0
}

.sbc-loading {
    text-align: center;
    padding: 24px;
    color: #ccc
}

/* ═══ CONTACT FORMS ═══ */
.sbc-contact-wrap {
    max-width: none !important;
    margin: 0 !important
}

.sbc-contact-wrap .sbc-calendar,
.sbc-contact-form {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important
}

.sbc-contact-wrap .sbc-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important
}

.sbc-contact-wrap .sbc-f select {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(183, 110, 121, .25) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: 'Rubik', sans-serif !important;
    color: #242424 !important;
    background: #fff !important;
    cursor: pointer !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important
}

.sbc-contact-wrap .sbc-f select:focus {
    outline: none !important;
    border-color: #b76e79 !important;
    box-shadow: 0 0 0 3px rgba(183, 110, 121, .1) !important
}

.sbc-contact-wrap h4 {
    display: none !important
}

@media(max-width:520px) {
    .sbc-wrap {
        max-width: 100% !important
    }

    .sbc-calendar {
        padding: 18px !important
    }

    .sbc-fields {
        grid-template-columns: 1fr !important
    }

    .sbc-slots-list {
        grid-template-columns: repeat(3, 1fr) !important
    }

    .sbc-proj-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .sbc-contact-wrap .sbc-fields {
        grid-template-columns: 1fr !important
    }
}

/* Fix for phone field double borders */
.sbc-f .sbc-phone input[type="tel"] {
    border: none !important;
    box-shadow: none !important;
    padding: 11px 14px !important;
}

.sbc-contact-wrap .sbc-f .sbc-phone select {
    border: none !important;
    border-right: 1px solid rgba(183, 110, 121, .2) !important;
    border-radius: 0 !important;
    background-color: rgba(183, 110, 121, .03) !important;
    box-shadow: none !important;
}

@media(min-width: 768px) {

    /* 6-column grid for granular control */
    .sbc-wrap[data-form-type="investment"] .sbc-fields {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    /* Default: Span 3 columns (Rows with 2 items like Budget & Goal) */
    .sbc-wrap[data-form-type="investment"] .sbc-fields>.sbc-f {
        grid-column: span 3 !important;
    }

    /* Row 1: Name, Email, Phone (Span 2 columns = 3 items per row) */
    .sbc-wrap[data-form-type="investment"] .sbc-fields>.sbc-f:nth-child(1),
    .sbc-wrap[data-form-type="investment"] .sbc-fields>.sbc-f:nth-child(2),
    .sbc-wrap[data-form-type="investment"] .sbc-fields>.sbc-f:nth-child(3) {
        grid-column: span 2 !important;
    }

    /* Row 3: Details (Last item) - Span full width */
    .sbc-wrap[data-form-type="investment"] .sbc-fields>.sbc-f:last-child {
        grid-column: 1 / -1 !important;
    }
}

/* ═══ STICKY HEADER ═══ */
.sbc-form-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(183, 110, 121, .2);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(183, 110, 121, .08);
}

.sbc-form-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

.sbc-form-header h4 {
    margin: 0 !important;
    font-size: 18px;
    font-weight: 600;
    color: #242424;
}

.sbc-form-header .sbc-sel-info {
    display: none !important;
}