/* Artmug-only form controls. This file is not loaded by other pages. */

/* Choice controls: light filled buttons with visible radio / checkbox marks. */
.artmug-page .request-form-modern .option-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    width: calc(100% - 18px) !important;
    margin-left: 18px !important;
}
.artmug-page .request-form-modern .option-pill {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    min-height: 30px !important;
    padding: 4px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: #fbfafb !important;
    box-shadow: none !important;
    color: #6d676b !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    transform: none !important;
    cursor: pointer !important;
    transition: background-color .15s ease, color .15s ease !important;
}
.artmug-page .request-form-modern .option-pill:hover {
    border-color: transparent !important;
    background: #f7f5f6 !important;
    box-shadow: none !important;
    color: #403b3e !important;
    transform: none !important;
}
.artmug-page .request-form-modern .option-pill:has(input:checked) {
    border-color: transparent !important;
    background: #f1eef0 !important;
    box-shadow: none !important;
    color: #2f2a2d !important;
    font-weight: 750 !important;
}

/* Keep native selection controls visible inside the button, but small and quiet. */
.artmug-page .request-form-modern .option-pill input[type="radio"],
.artmug-page .request-form-modern .option-pill input[type="checkbox"] {
    position: static !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: initial !important;
    opacity: 1 !important;
    accent-color: #686166 !important;
    cursor: pointer !important;
}
.artmug-page .request-form-modern .agree-box input[type="checkbox"] {
    position: static !important;
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: initial !important;
    opacity: 1 !important;
    accent-color: #686166 !important;
    cursor: pointer !important;
}
.artmug-page .request-form-modern .option-pill:has(input:focus-visible),
.artmug-page .request-form-modern .agree-box:has(input:focus-visible) {
    outline: 2px solid #b8b1b6 !important;
    outline-offset: 2px !important;
}

/* Binary subtitle choices are intentionally compact and left aligned. */
.artmug-page .request-form-modern .artmug-binary-row {
    justify-content: flex-start !important;
    gap: 4px 28px !important;
}

/* Date option: keep the radio label minimal; only the actual date field has a field outline. */
.artmug-page .request-form-modern .artmug-date-option {
    display: inline-grid !important;
    grid-template-columns: auto minmax(145px, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 32px !important;
    padding: 0 8px 0 10px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: #faf9fa !important;
    box-shadow: none !important;
}
.artmug-page .request-form-modern .artmug-date-option:has(input[type="radio"]:checked) {
    border-color: transparent !important;
    background: #f1eef0 !important;
}
.artmug-page .request-form-modern .artmug-date-option .option-label-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    line-height: 1 !important;
}
.artmug-page .request-form-modern .artmug-date-option .option-label-inline > span {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.artmug-page .request-form-modern .artmug-date-option .inline-option-input {
    width: 166px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
    background: #fff !important;
}

/* Conditional fields sit one level inside the choice that opened them. */
.artmug-page .request-form-modern .artmug-mv-url-group {
    box-sizing: border-box !important;
    width: calc(100% - 18px) !important;
    margin-left: 18px !important;
}

.artmug-page .request-form-modern .agree-box label {
    text-decoration: none !important;
}


.artmug-page .request-form-modern .agree-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 18px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f4f1f3 !important;
    box-shadow: none !important;
}
.artmug-page .request-form-modern .agree-box:has(input:checked) {
    border: 0 !important;
    background: #eee9ec !important;
}
.artmug-page .request-form-modern .agree-box label {
    cursor: pointer !important;
}

@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .option-row,
    .artmug-page .request-form-modern .artmug-binary-row {
        gap: 3px !important;
    }
    .artmug-page .request-form-modern .option-row {
        width: calc(100% - 12px) !important;
        margin-left: 12px !important;
    }
    .artmug-page .request-form-modern .option-pill {
        min-height: 28px !important;
        font-size: 13px !important;
    }
    .artmug-page .request-form-modern .artmug-date-option {
        width: 100% !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
    }
    .artmug-page .request-form-modern .artmug-date-option .inline-option-input {
        width: 100% !important;
    }
    .artmug-page .request-form-modern .artmug-mv-url-group {
        width: calc(100% - 12px) !important;
        margin-left: 12px !important;
    }
}

/* Validation feedback: slow, repeated red pulse until the missing value is resolved. */
.artmug-page .request-form-modern .input-group.required-missing {
    position: relative !important;
    border-radius: 10px !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 1px rgba(218, 78, 78, 0.28), 0 0 0 4px rgba(218, 78, 78, 0.05) !important;
    animation: artmugRequiredSlowPulse 2.2s ease-in-out infinite !important;
}
.artmug-page .request-form-modern .input-group.required-missing > label,
.artmug-page .request-form-modern .input-group.required-missing .field-head > label {
    color: #9d3f47 !important;
    transition: color .2s ease !important;
}
.artmug-page .request-form-modern .input-group.required-missing input[type="text"],
.artmug-page .request-form-modern .input-group.required-missing textarea {
    border-color: rgba(205, 72, 72, 0.46) !important;
}

.artmug-page .request-form-modern .agree-box.agree-required-highlight {
    border: 0 !important;
    outline: 0 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(218, 78, 78, 0.30), 0 0 0 4px rgba(218, 78, 78, 0.05) !important;
    animation: artmugAgreeSlowPulse 2.2s ease-in-out infinite !important;
}
.artmug-page .request-form-modern .agree-box.agree-required-highlight label {
    color: #913b43 !important;
}
.artmug-page .request-form-modern .agree-box.agree-required-highlight input[type="checkbox"] {
    box-shadow: none !important;
}

@keyframes artmugRequiredSlowPulse {
    0%, 100% {
        background: #fffafa;
        box-shadow: 0 0 0 1px rgba(218, 78, 78, 0.18), 0 0 0 3px rgba(218, 78, 78, 0.03);
    }
    50% {
        background: #ffe7e8;
        box-shadow: 0 0 0 2px rgba(218, 78, 78, 0.48), 0 0 0 7px rgba(218, 78, 78, 0.11);
    }
}

@keyframes artmugAgreeSlowPulse {
    0%, 100% {
        background: #fffafa;
        box-shadow: 0 0 0 1px rgba(218, 78, 78, 0.18), 0 0 0 3px rgba(218, 78, 78, 0.03);
    }
    50% {
        background: #ffe7e8;
        box-shadow: 0 0 0 2px rgba(218, 78, 78, 0.48), 0 0 0 7px rgba(218, 78, 78, 0.11);
    }
}

@media (prefers-reduced-motion: reduce) {
    .artmug-page .request-form-modern .input-group.required-missing,
    .artmug-page .request-form-modern .agree-box.agree-required-highlight {
        animation: none !important;
    }
}

/* 202608212146: keep the original field spacing; distinguish numbered items with background only. */
.artmug-page .request-form-modern .grid-form > .input-group {
    position: relative !important;
    z-index: 0 !important;
}
.artmug-page .request-form-modern .grid-form > .input-group::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    inset: -4px -6px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(248, 246, 247, 0.72) !important;
    pointer-events: none !important;
}

/* Each radio choice owns the field that belongs to it. */
.artmug-page .request-form-modern .date-status-row .artmug-choice-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: min(100%, 520px) !important;
    gap: 4px !important;
}
.artmug-page .request-form-modern .date-status-row .artmug-choice-block > .option-pill {
    display: inline-flex !important;
    justify-content: flex-start !important;
    width: auto !important;
    height: auto !important;
    min-height: 30px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 4px 10px !important;
}
.artmug-page .request-form-modern .artmug-nested-field {
    box-sizing: border-box !important;
    width: calc(100% - 22px) !important;
    margin: 0 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.artmug-page .request-form-modern .artmug-nested-field input[type="text"],
.artmug-page .request-form-modern .date-status-row .artmug-nested-field .inline-option-input {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

/* Fast-deadline choices follow the same left indentation as the other choices. */
.artmug-page #blockForm.request-form-modern .deadline-option-row.option-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    width: calc(100% - 18px) !important;
    margin-left: 18px !important;
}
.artmug-page #blockForm.request-form-modern .deadline-option-row.option-row > label.option-pill,
.artmug-page #blockForm.request-form-modern .deadline-option-row.option-row > .option-pill {
    justify-content: flex-start !important;
    width: auto !important;
    margin: 0 !important;
}

@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .date-status-row .artmug-choice-block {
        width: 100% !important;
    }
    .artmug-page .request-form-modern .artmug-nested-field {
        width: calc(100% - 18px) !important;
        margin-left: 18px !important;
    }
    .artmug-page #blockForm.request-form-modern .deadline-option-row.option-row {
        width: calc(100% - 12px) !important;
        margin-left: 12px !important;
        gap: 3px !important;
    }
}


/* 202608212150: tighten vertical spacing between Artmug choice items only. */
.artmug-page .request-form-modern .option-row,
.artmug-page .request-form-modern .artmug-binary-row,
.artmug-page #blockForm.request-form-modern .deadline-option-row.option-row {
    row-gap: 4px !important;
}
.artmug-page .request-form-modern .option-pill,
.artmug-page .request-form-modern .date-status-row .artmug-choice-block > .option-pill {
    min-height: 30px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}
.artmug-page .request-form-modern .date-status-row .artmug-choice-block {
    gap: 4px !important;
}
@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .option-row,
    .artmug-page .request-form-modern .artmug-binary-row,
    .artmug-page #blockForm.request-form-modern .deadline-option-row.option-row {
        row-gap: 3px !important;
    }
}

/* 202608212229: reduce outer spacing between numbered layers in choice-heavy sections. */
.artmug-page .request-form-modern .grid-form:has(> .input-group > .option-row) {
    row-gap: 5px !important;
}
.artmug-page .request-form-modern .grid-form:has(> .input-group > .option-row) > .input-group::before {
    inset: -1px -6px !important;
}
@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .grid-form:has(> .input-group > .option-row) {
        row-gap: 4px !important;
    }
}

/* Mobile compatibility: title + short supporting copy for quick scanning. */
.artmug-page .request-form-modern .mobile-compatibility-row {
    gap: 5px !important;
}
.artmug-page .request-form-modern .mobile-compatibility-option {
    width: min(100%, 760px) !important;
    align-items: flex-start !important;
    padding: 8px 11px !important;
}
.artmug-page .request-form-modern .mobile-compatibility-option > input[type="radio"] {
    margin-top: 2px !important;
}
.artmug-page .request-form-modern .mobile-compatibility-copy {
    display: grid !important;
    gap: 1px !important;
    min-width: 0 !important;
}
.artmug-page .request-form-modern .mobile-compatibility-copy strong {
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}
.artmug-page .request-form-modern .mobile-compatibility-copy small {
    color: #8b8488 !important;
    font-size: 12px !important;
    font-weight: 560 !important;
    line-height: 1.45 !important;
}
.artmug-page .request-form-modern .mobile-compatibility-option:has(input:checked) .mobile-compatibility-copy small {
    color: #665f63 !important;
}

@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .mobile-compatibility-option {
        width: 100% !important;
        padding: 8px 9px !important;
    }
    .artmug-page .request-form-modern .mobile-compatibility-copy strong {
        font-size: 13px !important;
    }
    .artmug-page .request-form-modern .mobile-compatibility-copy small {
        font-size: 11px !important;
    }
}

/* Subtitle detail fields: align input controls one level under their numbered labels. */
.artmug-page .request-form-modern .artmug-indented-field {
    box-sizing: border-box !important;
    width: calc(100% - 18px) !important;
    margin-left: 18px !important;
}
.artmug-page .request-form-modern .artmug-indented-field > input[type="text"],
.artmug-page .request-form-modern .artmug-indented-field > textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
}
.artmug-page .request-form-modern .artmug-reference-fields {
    display: grid !important;
    gap: 6px !important;
}

/* 등급별 모바일 호환성 정책에 따라 사용할 수 없는 선택지를 표시한다. */
.artmug-page .request-form-modern .mobile-compatibility-option.is-type-disabled {
    opacity: 0.38 !important;
    filter: grayscale(0.25) !important;
    cursor: not-allowed !important;
    background: #f7f5f6 !important;
}
.artmug-page .request-form-modern .mobile-compatibility-option.is-type-disabled:hover {
    color: #6d676b !important;
    background: #f7f5f6 !important;
}
.artmug-page .request-form-modern .mobile-compatibility-option.is-type-disabled input[type="radio"],
.artmug-page .request-form-modern .mobile-compatibility-option.is-type-disabled .mobile-compatibility-copy {
    cursor: not-allowed !important;
}
.cursor-floating-tooltip {
    position: fixed !important;
    z-index: 10000 !important;
    max-width: min(280px, calc(100vw - 16px)) !important;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    background: rgba(45, 41, 44, 0.94) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}
.cursor-floating-tooltip[hidden] {
    display: none !important;
}

@media screen and (max-width: 640px) {
    .artmug-page .request-form-modern .artmug-indented-field {
        width: calc(100% - 12px) !important;
        margin-left: 12px !important;
    }
}


/* 202609010950: concise subtitle type labels with cursor-following descriptions */
.artmug-page .request-form-modern .subtitle-type-option[data-floating-tip] {
    cursor: help !important;
}
.artmug-page .request-form-modern .subtitle-type-option[data-floating-tip] > span {
    cursor: help !important;
}

/* 2026-09-02: subtitle type preview buttons. */
.artmug-page .request-form-modern .subtitle-type-row {
    gap: 5px !important;
}
.artmug-page .request-form-modern .subtitle-type-choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
}
.artmug-page .request-form-modern .subtitle-type-choice > .option-pill {
    margin: 0 !important;
}
.artmug-page .request-form-modern .type-preview-help {
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dadd;
    border-radius: 999px;
    background: #fff;
    color: #7b8289;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    box-shadow: 0 1px 4px rgba(31, 41, 51, .06);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.artmug-page .request-form-modern .type-preview-help:hover,
.artmug-page .request-form-modern .type-preview-help:focus-visible {
    border-color: #afb5bb;
    background: #f6f7f8;
    color: #424a52;
    outline: none;
}

/* 2026-09-02: align the Artmug request form with the unified personal commission form. */
.artmug-page #blockForm.request-form-modern {
    padding: 28px !important;
    border-color: #e2e6ea !important;
    background: #f5f6f8 !important;
}

.artmug-page #blockForm.request-form-modern .form-section-card {
    box-sizing: border-box;
    margin-top: 18px !important;
    padding: 18px !important;
    border: 1px solid #e0e4e8 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 48, 58, .035) !important;
}

.artmug-page #blockForm.request-form-modern .form-section-card:first-of-type {
    margin-top: 0 !important;
}

.artmug-page #blockForm.request-form-modern .sec-title {
    margin: 0 0 14px !important;
    color: #25313b !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    letter-spacing: -.03em !important;
}

.artmug-page #blockForm.request-form-modern .sec-title > span {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66717c !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    box-shadow: none !important;
}

/* One-column field flow, matching the current personal commission form. */
.artmug-page #blockForm.request-form-modern .grid-form {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
}

.artmug-page #blockForm.request-form-modern .grid-form > .input-group {
    position: relative !important;
    z-index: 0 !important;
    box-sizing: border-box;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #e5e8eb !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    box-shadow: none !important;
}

/* Remove the older pseudo-background so each field has only one clear card layer. */
.artmug-page #blockForm.request-form-modern .grid-form > .input-group::before {
    content: none !important;
    display: none !important;
}

/* Enlarge field names only; supporting copy and control text keep their existing sizes. */
.artmug-page #blockForm.request-form-modern .input-group > label,
.artmug-page #blockForm.request-form-modern .field-head > label,
.artmug-page #blockForm.request-form-modern .input-group.required-missing > label,
.artmug-page #blockForm.request-form-modern .input-group.required-missing .field-head > label {
    color: #27313a !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    letter-spacing: -.025em !important;
}

.artmug-page #blockForm.request-form-modern .input-group > label,
.artmug-page #blockForm.request-form-modern .field-head > label {
    position: relative;
    padding-left: 10px;
}

.artmug-page #blockForm.request-form-modern .input-group > label::before,
.artmug-page #blockForm.request-form-modern .field-head > label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 999px;
    background: #66717c;
    opacity: .82;
}

.artmug-page #blockForm.request-form-modern .input-group > label {
    margin-bottom: 9px !important;
}

.artmug-page #blockForm.request-form-modern .field-head {
    gap: 7px 10px !important;
    margin-bottom: 9px !important;
}

.artmug-page #blockForm.request-form-modern .field-head > label {
    margin: 0 !important;
}

.artmug-page #blockForm.request-form-modern .input-help,
.artmug-page #blockForm.request-form-modern .field-head .input-help {
    color: #8a939b !important;
    font-weight: 600 !important;
}

/* Nested conditional inputs stay visually inside their parent field card. */
.artmug-page #blockForm.request-form-modern .grid-form > .input-group .artmug-nested-field {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media screen and (max-width: 880px) {
    .artmug-page #blockForm.request-form-modern {
        padding: 20px !important;
    }
}

@media screen and (max-width: 560px) {
    .artmug-page #blockForm.request-form-modern {
        padding: 14px !important;
    }

    .artmug-page #blockForm.request-form-modern .form-section-card {
        padding: 14px !important;
    }

    .artmug-page #blockForm.request-form-modern .grid-form > .input-group {
        padding: 12px !important;
    }

    .artmug-page #blockForm.request-form-modern .input-group > label,
    .artmug-page #blockForm.request-form-modern .field-head > label,
    .artmug-page #blockForm.request-form-modern .input-group.required-missing > label,
    .artmug-page #blockForm.request-form-modern .input-group.required-missing .field-head > label {
        font-size: 15.5px !important;
    }
}
