.whph-wrap {
    --whph-main: #628bb4;
    --whph-main-dark: #4d759c;
    --whph-text: #1f2937;
    --whph-border: #d6e1ec;
    --whph-soft: #f7fafc;
    --whph-black: #111111;
    color: var(--whph-text);
    margin: 15px 0;
    box-sizing: border-box;
}

.whph-wrap,
.whph-wrap * {
    box-sizing: border-box;
}

.whph-section {
    margin: 15px 0;
}

.whph-card {
    padding: 20px;
    border: 1px solid var(--whph-border);
    background: #ffffff;
}

.whph-inquiry-card {
    border-top: 4px solid var(--whph-main);
    background: #fbfdff;
}

.whph-card-title {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 800;
    color: var(--whph-text);
}

.whph-grid {
    display: grid;
    gap: 15px;
    margin: 15px 0;
}

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

.whph-calc-section .whph-grid-2 {
    grid-template-columns: 1fr;
}

.whph-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whph-field-label {
    font-size: 14px;
    font-weight: 700;
    color: #38556f;
}

.whph-field-help {
    font-size: 13px;
    line-height: 1.6;
    color: #61788e;
}

.whph-input,
.whph-textarea,
.whph-select-toggle,
.whph-select-search {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--whph-border);
    background: #ffffff;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--whph-text);
    outline: none;
    border-radius: 0;
}

.whph-input:focus,
.whph-textarea:focus,
.whph-select-toggle:focus,
.whph-select-search:focus {
    border-color: var(--whph-main);
    box-shadow: 0 0 0 1px var(--whph-main);
}

.whph-textarea {
    min-height: 160px;
    resize: vertical;
    margin: 15px 0;
}

.whph-primary-button,
.whph-primary-button:hover,
.whph-primary-button:focus,
.whph-primary-button:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    margin: 15px 0;
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
}

.whph-primary-button:focus {
    outline: none;
    box-shadow: 0 0 0 1px #000000;
}

.whph-topic-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.whph-topic-button {
    min-height: 88px;
    padding: 14px 12px;
    border: 1px solid var(--whph-main);
    background: #ffffff;
    color: var(--whph-main);
    font-size: 16px;
    font-weight: 800;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.whph-topic-button.is-active {
    background: var(--whph-main);
    color: #ffffff;
}

.whph-detail-area {
    margin: 15px 0;
}

.whph-select {
    position: relative;
    margin: 15px 0;
}

.whph-select-toggle {
    text-align: left;
    background: #ffffff;
    cursor: pointer;
}

.whph-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid var(--whph-border);
    background: #ffffff;
}

.whph-select-search {
    border: 0;
    border-bottom: 1px solid var(--whph-border);
    margin: 0;
}

.whph-select-options {
    max-height: 280px;
    overflow-y: auto;
}

.whph-option {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #eef3f8;
    background: #ffffff;
    color: var(--whph-text);
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    border-radius: 0;
}

.whph-option:last-child {
    border-bottom: 0;
}

.whph-option:hover,
.whph-option:focus {
    background: #000000;
    color: #ffffff;
    outline: none;
}

.whph-result-box {
    margin: 15px 0;
    border: 1px solid var(--whph-border);
    background: var(--whph-soft);
    padding: 18px;
}

.whph-result-empty {
    font-size: 15px;
    line-height: 1.6;
    color: #526577;
}

.whph-result-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: #213140;
}

.whph-result-row {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin: 0 0 10px;
    border: 1px solid #d8e4ef;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.6;
}

.whph-result-row:last-of-type {
    margin-bottom: 0;
}

.whph-result-row.is-positive {
    border-color: #b9d9c7;
    background: #f4fbf7;
}

.whph-result-row.is-caution {
    border-color: #e9d7aa;
    background: #fffaf0;
}

.whph-result-row.is-negative {
    border-color: #efc4c4;
    background: #fff6f6;
}

.whph-result-key {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #527391;
}

.whph-result-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #162331;
}

.whph-result-note {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d8e4ef;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    color: #44596e;
}

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%;
}
}

.whph-share-button,
.whph-share-button:hover,
.whph-share-button:focus,
.whph-share-button:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    margin: 0;
    border: 1px solid #4f5f6f;
    background: linear-gradient(180deg, #7f92a3 0%, #62798d 55%, #4f5f6f 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
}

.whph-share-message,
.whph-inquiry-message {
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid #d8e4ef;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    color: #425a70;
    display: none;
}

.whph-share-message.is-visible,
.whph-inquiry-message.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .whph-grid-2 {
        grid-template-columns: 1fr;
    }

    .whph-card {
        padding: 16px;
    }

    .whph-card-title {
        font-size: 20px;
    }

    .whph-topic-buttons {
        grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    }

    .whph-topic-button {
        min-height: 74px;
        font-size: 15px;
    }
}
