:root {
--ehgc-accent-color: #27AE7E;
--ehgc-accent-hover: #229e71;
--ehgc-text-primary: #1a1a1a;
--ehgc-text-secondary: #333333;
--ehgc-text-muted: #666666;
--ehgc-bg-card: #ffffff;
--ehgc-bg-input: #ffffff;
--ehgc-bg-faq: #fafafa;
--ehgc-bg-faq-hover: #f0f0f0;
--ehgc-bg-result: #f0faf5;
--ehgc-border-color: #dddddd;
--ehgc-border-light: #eeeeee;
--ehgc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
} body.dark-mode,
body.dark,
body.night-mode,
body[data-theme="dark"],
html.dark-mode,
html.dark,
html[data-theme="dark"] {
--ehgc-text-primary: #ffffff;
--ehgc-text-secondary: #e0e0e0;
--ehgc-text-muted: #aaaaaa;
--ehgc-bg-card: #2d2d2d;
--ehgc-bg-input: #3d3d3d;
--ehgc-bg-faq: #333333;
--ehgc-bg-faq-hover: #3d3d3d;
--ehgc-bg-result: #1e3a2f;
--ehgc-border-color: #4d4d4d;
--ehgc-border-light: #3d3d3d;
--ehgc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
} @media (prefers-color-scheme: dark) {
:root:not(.light-mode):not([data-theme="light"]) {
--ehgc-text-primary: #ffffff;
--ehgc-text-secondary: #e0e0e0;
--ehgc-text-muted: #aaaaaa;
--ehgc-bg-card: #2d2d2d;
--ehgc-bg-input: #3d3d3d;
--ehgc-bg-faq: #333333;
--ehgc-bg-faq-hover: #3d3d3d;
--ehgc-bg-result: #1e3a2f;
--ehgc-border-color: #4d4d4d;
--ehgc-border-light: #3d3d3d;
--ehgc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
} .ehgc-calculator-wrapper {
max-width: 520px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.ehgc-calculator-wrapper *,
.ehgc-calculator-wrapper *::before,
.ehgc-calculator-wrapper *::after {
box-sizing: border-box;
} .ehgc-card {
background: var(--ehgc-bg-card);
border-radius: 16px;
padding: 48px 56px;
box-shadow: var(--ehgc-shadow);
} .ehgc-title {
text-align: center;
font-size: 24px;
font-weight: 700;
color: var(--ehgc-text-primary);
margin: 0 0 32px 0;
padding: 0;
line-height: 1.3;
} .ehgc-form-group {
margin-bottom: 24px;
}
.ehgc-form-group label {
display: block;
font-size: 18px;
font-weight: 600;
color: var(--ehgc-text-secondary);
margin-bottom: 12px;
} .ehgc-date-input {
width: 100%;
padding: 16px 20px;
font-size: 16px;
border: 1px solid var(--ehgc-border-color);
border-radius: 12px;
color: var(--ehgc-text-secondary);
background: var(--ehgc-bg-input);
transition: border-color 0.2s ease;
-webkit-appearance: none;
appearance: none;
}
.ehgc-date-input:focus {
outline: none;
border-color: var(--ehgc-accent-color);
box-shadow: 0 0 0 3px rgba(39, 174, 126, 0.1);
} .ehgc-btn {
width: 100%;
padding: 16px;
font-size: 18px;
font-weight: 600;
color: #ffffff;
background-color: var(--ehgc-accent-color);
border: none;
border-radius: 12px;
cursor: pointer;
transition: background-color 0.2s ease;
line-height: 1.4;
}
.ehgc-btn:hover,
.ehgc-btn:focus {
background-color: var(--ehgc-accent-hover);
outline: none;
}
.ehgc-btn:focus {
box-shadow: 0 0 0 3px rgba(39, 174, 126, 0.3);
} .ehgc-result {
margin-top: 28px;
padding: 24px;
background-color: var(--ehgc-bg-result);
border-radius: 12px;
display: none;
}
.ehgc-result.ehgc-show {
display: block;
}
.ehgc-result-label {
font-size: 14px;
color: var(--ehgc-text-muted);
margin-bottom: 8px;
}
.ehgc-result-date {
font-size: 42px;
font-weight: 700;
color: var(--ehgc-accent-color);
line-height: 1.2;
word-wrap: break-word;
}
.ehgc-result-info {
font-size: 14px;
color: var(--ehgc-text-muted);
margin-top: 16px;
line-height: 1.6;
}
.ehgc-result-info strong {
color: var(--ehgc-text-secondary);
} .ehgc-faq-section {
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid var(--ehgc-border-light);
}
.ehgc-faq-title {
font-size: 22px;
font-weight: 700;
color: var(--ehgc-text-primary);
margin: 0 0 20px 0;
padding: 0;
text-align: center;
}
.ehgc-faq-item {
background: var(--ehgc-bg-faq);
border: 1px solid var(--ehgc-border-light);
border-radius: 12px;
margin-bottom: 12px;
overflow: hidden;
}
.ehgc-faq-item:last-child {
margin-bottom: 0;
}
.ehgc-faq-question {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 20px 24px;
font-size: 16px;
font-weight: 600;
color: var(--ehgc-text-secondary);
cursor: pointer;
user-select: none;
background: var(--ehgc-bg-faq);
border: none;
text-align: left;
transition: background-color 0.2s ease;
line-height: 1.4;
}
.ehgc-faq-question:hover,
.ehgc-faq-question:focus {
background: var(--ehgc-bg-faq-hover);
outline: none;
}
.ehgc-faq-icon {
font-size: 22px;
font-weight: 400;
color: var(--ehgc-accent-color);
transition: transform 0.2s ease;
flex-shrink: 0;
margin-left: 16px;
}
.ehgc-faq-item.ehgc-active .ehgc-faq-icon {
transform: rotate(45deg);
}
.ehgc-faq-answer {
font-size: 15px;
color: var(--ehgc-text-muted);
line-height: 1.7;
padding: 0 24px 20px;
display: none;
}
.ehgc-faq-item.ehgc-active .ehgc-faq-answer {
display: block;
} .screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
} @media (max-width: 600px) {
.ehgc-calculator-wrapper {
padding: 10px;
}
.ehgc-card {
padding: 32px 24px;
}
.ehgc-title {
font-size: 22px;
}
.ehgc-form-group label {
font-size: 16px;
}
.ehgc-result-date {
font-size: 28px;
}
.ehgc-faq-question {
padding: 16px 20px;
font-size: 15px;
}
.ehgc-faq-answer {
padding: 0 20px 16px;
font-size: 14px;
}
}