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

@font-face {
    font-family: "Roca One";
    src: local("Roca One"), local("RocaOne");
    font-display: swap;
}

.scbg-wrapper {
    --scbg-bg: #f1ebdf;
    --scbg-ink: #1f2522;
    --scbg-muted: #5d675f;
    --scbg-panel: rgba(255, 255, 255, 0.78);
    --scbg-panel-strong: #ffffff;
    --scbg-border: rgba(103, 113, 89, 0.24);
    --scbg-accent: #1f2d27;
    --scbg-accent-deep: #131c18;
    --scbg-accent-soft: #e8f0d2;
    --scbg-calendar-active: #1f2d27;
    --scbg-good: #146d48;
    --scbg-medium: #915f0f;
    --scbg-poor: #9d2a1d;

    position: relative;
    overflow: hidden;
    border: 1px solid var(--scbg-border);
    border-radius: 30px;
    padding: clamp(18px, 3vw, 30px);
    color: var(--scbg-ink);
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at -10% -20%, rgba(151, 170, 82, 0.24), transparent 50%),
        radial-gradient(circle at 110% 110%, rgba(122, 102, 63, 0.15), transparent 55%),
        var(--scbg-bg);
    box-shadow:
        0 26px 48px -34px rgba(36, 41, 32, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.scbg-wrapper * {
    box-sizing: border-box;
}

.scbg-wrapper::before {
    content: "";
    position: absolute;
    inset: -18% -8% -18% -12%;
    background:
        repeating-radial-gradient(circle at 30% 30%, rgba(175, 183, 153, 0.11) 0 24px, transparent 24px 56px);
    opacity: 0.62;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
    transform: rotate(-4deg);
    pointer-events: none;
}

.scbg-wrapper::after {
    content: "";
    position: absolute;
    inset: -8% -12% -26% 34%;
    background:
        radial-gradient(circle at 36% 28%, rgba(151, 170, 82, 0.2), transparent 64%),
        radial-gradient(circle at 78% 70%, rgba(124, 97, 51, 0.1), transparent 68%);
    opacity: 0.78;
    pointer-events: none;
}

.scbg-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(16px, 2.2vw, 26px);
    align-items: start;
}

.scbg-wrapper .scbg-heading {
    margin: 0 0 12px !important;
    font-family: "Roca One", "Fraunces", "Iowan Old Style", serif !important;
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0.01em !important;
    color: #1b2b24 !important;
}

.scbg-preview-box {
    border: 1px solid rgba(95, 105, 79, 0.26);
    border-radius: 22px;
    padding: 14px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.62));
    box-shadow: 0 20px 34px -28px rgba(31, 35, 29, 0.4);
}

.scbg-mockup {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    background:
        linear-gradient(155deg, #c6d993 0%, #adc868 36%, #90ae43 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 16px);
    box-shadow:
        inset 0 0 0 1px rgba(36, 49, 27, 0.25),
        inset 0 -20px 26px rgba(53, 66, 39, 0.18);
}

.scbg-mockup::before {
    content: "";
    position: absolute;
    inset: -8% -8%;
    background:
        radial-gradient(circle at 14% 40%, rgba(207, 223, 180, 0.86) 0 17%, transparent 18%),
        radial-gradient(circle at 48% 64%, rgba(198, 216, 170, 0.84) 0 20%, transparent 21%),
        radial-gradient(circle at 77% 26%, rgba(202, 220, 179, 0.82) 0 15%, transparent 16%),
        radial-gradient(circle at 82% 72%, rgba(176, 199, 133, 0.58) 0 18%, transparent 19%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.scbg-logo-slot {
    position: absolute;
    width: 34%;
    height: 28%;
    border-radius: 12px;
    border: 2px dashed rgba(31, 68, 58, 0.45);
    background: rgba(249, 252, 243, 0.74);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    z-index: 2;
}

.scbg-logo-top-center {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
}

.scbg-logo-top-left {
    top: 12%;
    left: 10%;
}

.scbg-logo-top-right {
    top: 12%;
    right: 10%;
}

.scbg-logo-side-center {
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 26%;
    height: 32%;
}

.scbg-logo-placeholder,
.scbg-pdf-placeholder {
    font-size: 0.79rem;
    color: var(--scbg-muted);
    line-height: 1.25;
    font-weight: 600;
}

.scbg-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scbg-message-preview {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 9%;
    min-height: 18%;
    border: 1px solid rgba(80, 65, 39, 0.2);
    border-radius: 10px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.89rem;
    line-height: 1.28;
    color: #2d2b24;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    word-break: break-word;
    z-index: 2;
}

.scbg-note {
    margin: 12px 2px 0;
    color: var(--scbg-muted);
    font-size: 0.89rem;
    line-height: 1.45;
}

.scbg-form-column {
    background: var(--scbg-panel);
    border: 1px solid rgba(101, 111, 86, 0.2);
    border-radius: 24px;
    padding: clamp(12px, 1.6vw, 18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scbg-form {
    display: grid;
    gap: 12px;
}

.scbg-field {
    border: 1px solid rgba(106, 117, 90, 0.24);
    border-radius: 16px;
    padding: 12px;
    background: var(--scbg-panel-strong);
    box-shadow: inset 0 -10px 16px rgba(232, 236, 225, 0.24);
}

.scbg-wrapper .scbg-field label,
.scbg-wrapper .scbg-label {
    display: block;
    margin: 0 0 7px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e2f27;
    letter-spacing: 0.012em;
    font-family: "Roca One", "Fraunces", "Iowan Old Style", serif !important;
}

.scbg-field input[type="number"],
.scbg-field input[type="file"],
.scbg-field textarea {
    width: 100%;
    border: 1px solid #c8cfbc;
    border-radius: 12px;
    background: #fdfefa;
    color: #1f2522;
    font-size: 0.94rem;
    font-family: "Manrope", "Avenir Next", sans-serif;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.scbg-field textarea {
    resize: vertical;
    min-height: 86px;
    line-height: 1.45;
}

.scbg-field input:focus,
.scbg-field textarea:focus {
    outline: none;
    border-color: #8ca456;
    box-shadow: 0 0 0 3px rgba(151, 170, 82, 0.2);
    background: #ffffff;
}

.scbg-field input[type="file"]::file-selector-button {
    border: 0;
    margin-right: 10px;
    border-radius: 9px;
    padding: 7px 10px;
    background: #dce8bf;
    color: #33442c;
    font-weight: 700;
    cursor: pointer;
}

.scbg-help,
.scbg-counter,
.scbg-file-status,
.scbg-selected-date {
    margin: 8px 0 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--scbg-muted);
}

.scbg-file-status[data-state="good"] {
    color: var(--scbg-good);
}

.scbg-file-status[data-state="medium"] {
    color: var(--scbg-medium);
}

.scbg-file-status[data-state="poor"] {
    color: var(--scbg-poor);
    font-weight: 700;
}

.scbg-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.scbg-radio-item {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d4dcc7;
    border-radius: 11px;
    padding: 8px 10px;
    background: #f8faf3;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.3;
}

.scbg-radio-item input[type="radio"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid #9fb17c;
    margin: 0;
    position: relative;
    flex: 0 0 auto;
}

.scbg-radio-item input[type="radio"]:checked {
    border-color: #1f2d27;
}

.scbg-radio-item input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: #1f2d27;
}

.scbg-radio-item input[type="radio"]:checked + span {
    font-weight: 700;
    color: #2e4526;
}

.scbg-warning {
    margin-top: 9px;
    border: 1px solid #ebc7a7;
    border-radius: 11px;
    padding: 9px;
    background: #fff4ea;
}

.scbg-warning p {
    margin: 0 0 8px;
    color: #834617;
    font-size: 0.87rem;
}

.scbg-inquiry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 8px 11px;
    background: #8f6b36;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.87rem;
}

.scbg-calendar {
    border: 1px solid #d5dec7;
    border-radius: 15px;
    padding: 10px;
    background: linear-gradient(170deg, #ffffff, #f5f8ee);
}

.scbg-calendar-toolbar {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.scbg-wrapper .scbg-calendar-month {
    margin: 0;
    text-align: center;
    font-family: "Roca One", "Fraunces", "Iowan Old Style", serif !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.scbg-cal-nav {
    border: 1px solid #c8d4b2;
    background: #f2f8e6;
    color: #3b4f2f;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.scbg-cal-nav:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

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

.scbg-calendar-weekdays {
    margin-bottom: 6px;
}

.scbg-weekday {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #65725f;
    font-weight: 700;
    padding: 3px 0;
}

.scbg-cal-empty {
    display: block;
    min-height: 34px;
}

.scbg-cal-day {
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 34px;
    padding: 0;
    background: #f9fbf4;
    color: #213024;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.scbg-cal-day:hover {
    background: #e6f0ce;
    border-color: #bfd090;
    transform: translateY(-1px);
}

.scbg-cal-day.is-weekend {
    color: #7a8576;
}

.scbg-cal-day.is-today {
    border-color: #8ba359;
}

.scbg-cal-day.is-selected {
    background: var(--scbg-calendar-active);
    color: #f3f8ef;
    border-color: var(--scbg-calendar-active);
}

.scbg-cal-day.is-disabled,
.scbg-cal-day.is-disabled:hover {
    cursor: not-allowed;
    color: #abb6a8;
    background: #f5f6f2;
    border-color: transparent;
    transform: none;
}

.scbg-selected-date {
    margin-top: 7px;
    color: #314232;
    font-weight: 600;
}

.scbg-date-error {
    margin: 7px 0 0;
    font-size: 0.82rem;
    color: var(--scbg-poor);
    font-weight: 700;
}

.scbg-date-error[hidden] {
    display: none;
}

.scbg-price {
    background:
        linear-gradient(165deg, #f4f8e8, #ecf1de);
    border-color: rgba(115, 135, 64, 0.33);
}

.scbg-wrapper .scbg-price-value {
    margin: 0;
    font-family: "Roca One", "Fraunces", "Iowan Old Style", serif !important;
    font-size: 1.34rem;
    line-height: 1.1;
    color: #1e2f27;
}

.scbg-wrapper .scbg-submit.button.alt {
    border: 0;
    border-radius: 14px;
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    background: linear-gradient(140deg, var(--scbg-accent), var(--scbg-accent-deep)) !important;
    color: #fdfdf9 !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 24px -16px rgba(20, 31, 27, 0.72);
}

.scbg-wrapper .scbg-submit.button.alt:hover {
    filter: brightness(1.04);
}

.scbg-wrapper .scbg-submit.button.alt[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .scbg-layout {
        grid-template-columns: 1fr;
    }

    .scbg-preview-column {
        order: 2;
    }

    .scbg-form-column {
        order: 1;
    }
}

@media (max-width: 680px) {
    .scbg-wrapper {
        border-radius: 22px;
        padding: 14px;
    }

    .scbg-form-column {
        border-radius: 18px;
        padding: 10px;
    }

    .scbg-field {
        border-radius: 13px;
        padding: 10px;
    }

    .scbg-radio-grid {
        grid-template-columns: 1fr;
    }

    .scbg-cal-day,
    .scbg-cal-empty {
        min-height: 30px;
    }

    .scbg-calendar-toolbar {
        grid-template-columns: 30px 1fr 30px;
    }

    .scbg-cal-nav {
        width: 30px;
        height: 30px;
    }
}
