.ostp-wrap {
    --ostp-primary: #628bb4;
    --ostp-primary-dark: #4d759c;
    --ostp-border: #dbe5ef;
    --ostp-text: #222222;
    --ostp-muted: #5b6470;
    margin: 15px 0;
    color: var(--ostp-text);
    font-size: 16px;
    line-height: 1.6;
}

.ostp-wrap * {
    box-sizing: border-box;
}

.ostp-section {
    margin: 15px 0;
    padding: 18px;
    border: 1px solid var(--ostp-border);
    background: #ffffff;
}

.ostp-section-info {
    background: #f8fbfe;
}

.ostp-section-inquiry {
    background: #f4f8fc;
    border: 1px solid #cddded;
}

.ostp-field-group,
.ostp-detail-area,
.ostp-topic-buttons,
.ostp-result-box,
.ostp-info-result,
.ostp-copy-message,
.ostp-inquiry-message {
    margin: 15px 0;
}

.ostp-topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ostp-topic-button {
    appearance: none;
    border: 1px solid var(--ostp-primary);
    background: #ffffff;
    color: var(--ostp-primary);
    padding: 12px 18px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ostp-topic-button.is-active {
    background: var(--ostp-primary);
    color: #ffffff;
    border-color: var(--ostp-primary);
}

.ostp-custom-select,
.ostp-input-box,
.ostp-inquiry-box {
    position: relative;
    width: 100%;
    margin: 15px 0;
}

.ostp-select-input,
.ostp-number-input,
.ostp-inquiry-textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #cfd8e3;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.ostp-select-input:focus,
.ostp-number-input:focus,
.ostp-inquiry-textarea:focus {
    border-color: var(--ostp-primary);
}

.ostp-inquiry-textarea {
    min-height: 160px;
    resize: vertical;
}

.ostp-select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    z-index: 25;
    border: 1px solid #d0dae5;
    background: #ffffff;
    max-height: 340px;
    overflow-y: auto;
}

.ostp-custom-select.is-open .ostp-select-list {
    display: block;
}

.ostp-select-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #eef3f8;
    background: #ffffff;
    color: #222222;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 0;
}

.ostp-select-item:last-child {
    border-bottom: 0;
}

.ostp-select-item:hover,
.ostp-select-item:focus {
    background: #000000;
    color: #ffffff;
}

.ostp-black-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    margin: 15px 0;
    border: 0;
    background: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 0;
}

.ostp-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    margin: 15px 0;
    border: 1px solid #49698a;
    background: #e8f1fa;
    color: #2f5579;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 0;
}

.ostp-result-box,
.ostp-info-result,
.ostp-copy-message,
.ostp-inquiry-message {
    display: block;
}

.ostp-result-card,
.ostp-info-card {
    border: 1px solid #d7e3ef;
    background: #ffffff;
}

.ostp-result-row,
.ostp-info-row {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border-bottom: 1px solid #edf2f7;
}

.ostp-result-row:last-child,
.ostp-info-row:last-child {
    border-bottom: 0;
}

.ostp-result-label,
.ostp-info-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ostp-muted);
    margin-bottom: 4px;
}

.ostp-result-value,
.ostp-info-value {
    display: block;
    font-size: 16px;
    color: var(--ostp-text);
    word-break: keep-all;
}

.ostp-info-value {
    line-height: 1.8;
}

.ostp-copy-message,
.ostp-inquiry-message {
    font-size: 14px;
    font-weight: 700;
    color: #2f5579;
}


.ostp-result-card.ostp-tax-only {
    border: 2px solid var(--ostp-primary);
    background: #f8fbfe;
}

.ostp-result-card.ostp-tax-only .ostp-result-row {
    padding: 22px 18px;
    text-align: center;
}

.ostp-result-card.ostp-tax-only .ostp-result-label {
    font-size: 16px;
    margin-bottom: 8px;
}

.ostp-result-card.ostp-tax-only .ostp-result-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: #111111;
}

@media (max-width: 768px) {
    .ostp-result-card.ostp-tax-only .ostp-result-value {
        font-size: 28px;
    }
}

.ostp-inquiry-title {
    margin: 15px 0;
    font-size: 18px;
    font-weight: 800;
    color: #222222;
}

.ostp-empty-result {
    border: 1px solid #d7e3ef;
    background: #ffffff;
    padding: 14px 16px;
    color: #54606d;
}

a.eitc-apply-button,
 a.eitc-apply-button:link,
 a.eitc-apply-button:visited,
 a.eitc-apply-button:hover,
 a.eitc-apply-button:focus,
 a.eitc-apply-button:active {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 min-height: 56px;
 padding: 16px 20px;
 margin: 15px 0 25px;
 border: 1px solid #4d759c;
 background: linear-gradient(180deg, #7399c0 0%, #628bb4 48%, #4d759c 100%);
 color: #ffffff !important;
 font-size: 18px;
 font-weight: 800;
 letter-spacing: -0.02em;
 text-decoration: none !important;
 box-shadow: 0 12px 24px rgba(98, 139, 180, 0.26), inset 0 1px 0 rgba(255,255,255,0.25);
 overflow: hidden;
 transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
 animation: eitcApplyPulse 1.7s ease-in-out infinite;
 box-sizing: border-box;
 -webkit-text-fill-color: #ffffff !important;
 }
 
 a.eitc-apply-button span,
 a.eitc-apply-button span:link,
 a.eitc-apply-button span:visited,
 a.eitc-apply-button span:hover,
 a.eitc-apply-button span:focus,
 a.eitc-apply-button span:active {
 position: relative;
 z-index: 2;
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 }
 
 a.eitc-apply-button::before {
 content: '';
 position: absolute;
 top: 0;
 left: -30%;
 width: 24%;
 height: 100%;
 background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.26) 50%, rgba(255,255,255,0) 100%);
 transform: skewX(-18deg);
 animation: eitcApplyShine 2.8s linear infinite;
 z-index: 1;
 }
 
 a.eitc-apply-button:hover,
 a.eitc-apply-button:focus {
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 transform: translateY(-1px);
 box-shadow: 0 16px 28px rgba(98, 139, 180, 0.34), inset 0 1px 0 rgba(255,255,255,0.25);
 filter: saturate(1.05);
 }
 
 a.eitc-apply-button:active {
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 transform: translateY(1px);
 box-shadow: 0 8px 16px rgba(98, 139, 180, 0.26), inset 0 2px 6px rgba(0,0,0,0.15);
 }
 
 @keyframes eitcApplyPulse {
 0%, 100% {
 box-shadow: 0 12px 24px rgba(98, 139, 180, 0.26), inset 0 1px 0 rgba(255,255,255,0.25);
 }
 50% {
 box-shadow: 0 16px 30px rgba(98, 139, 180, 0.34), inset 0 1px 0 rgba(255,255,255,0.3);
 }
 }
 
 @keyframes eitcApplyShine {
 0% {
 left: -30%;
 }
 100% {
 left: 120%;
 }
 }

@media (max-width: 767px) {
    .ostp-section {
        padding: 14px;
    }

    .ostp-topic-button,
    .ostp-black-button,
    .ostp-share-button,
    a.eitc-apply-button {
        font-size: 16px;
    }
}

.ostp-repeater-group {
    margin: 15px 0;
    padding: 14px;
    border: 1px solid #d7e3ef;
    background: #f8fbfe;
}

.ostp-repeater-label {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #2f5579;
}

.ostp-repeater-list {
    display: block;
}

.ostp-year-row {
    position: relative;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #d7e3ef;
    background: #ffffff;
}

.ostp-year-row .ostp-custom-select,
.ostp-year-row .ostp-input-box {
    margin: 10px 0;
}

.ostp-repeater-add,
.ostp-row-remove {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
}

.ostp-repeater-add {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--ostp-primary);
    background: #ffffff;
    color: var(--ostp-primary);
    font-size: 15px;
}

.ostp-row-remove {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d3dbe5;
    background: #f5f7fa;
    color: #55606d;
    font-size: 14px;
}

.ostp-result-card.ostp-tax-only .ostp-result-row + .ostp-result-row {
    border-top: 1px solid #d7e3ef;
}

.ostp-result-card.ostp-tax-only .ostp-result-row:nth-child(2) {
    text-align: left;
}

.ostp-result-card.ostp-tax-only .ostp-result-row:nth-child(2) .ostp-result-label {
    font-size: 14px;
    margin-bottom: 6px;
}

.ostp-result-card.ostp-tax-only .ostp-result-row:nth-child(2) .ostp-result-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    color: #25313e;
}

.ostp-empty-result {
    padding: 16px;
    border: 1px solid #d7e3ef;
    background: #ffffff;
    color: #425162;
    font-weight: 700;
}
