/* ===== Reset & Box Sizing ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f0fe 0%, #f7fafd 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Container ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(160deg, #0d3b56 0%, #1e5b80 80%);
    color: #ffffff;
    padding: 2.5rem 20px;
    text-align: center;
    border-bottom: 4px solid #ffd166;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo svg {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.site-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    margin-top: 0.6rem;
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===== Ad Placeholder ===== */
.ad-slot {
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    border: 1px dashed #1e5b80;
    border-radius: 6px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e5b80;
    font-size: 0.85rem;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

section h2 {
    font-size: 1.8rem;
    color: #0d3b56;
    margin-bottom: 1rem;
    border-bottom: 3px solid #ffd166;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ===== Calculator ===== */
.calculator {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 12px 30px rgba(13, 59, 86, 0.08);
    border: 1px solid #dce6f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0d3b56;
}

select, input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ccdbe8;
    border-radius: 8px;
    background: #f9fbfd;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230d3b56%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2rem;
}

input[type="datetime-local"] {
    background-image: none;
    padding-right: 0.75rem;
}

select:focus, input[type="datetime-local"]:focus {
    outline: none;
    border-color: #1e5b80;
    box-shadow: 0 0 0 3px rgba(30, 91, 128, 0.25);
}

.btn {
    background: #0d3b56;
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(13, 59, 86, 0.3);
    width: 100%;
}

.btn:hover {
    background: #1e5b80;
}

.btn:active {
    transform: scale(0.98);
}

/* ===== Result Section ===== */
.result {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(13, 59, 86, 0.06);
    border: 1px solid #dce6f0;
    display: none;
}

.result.active {
    display: block;
}

#resultDisplay {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #ffd166;
    font-weight: 500;
    color: #0d3b56;
}

/* ===== Info Section ===== */
.info ul, .info ol {
    margin: 1.2rem 0 1.2rem 1.5rem;
}

.info li {
    margin-bottom: 0.5rem;
}

.info h3 {
    margin-top: 1.5rem;
    color: #1e5b80;
    font-size: 1.3rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #0d3b56;
    color: #dce6f0;
    text-align: center;
    padding: 1.5rem 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

.site-footer nav {
    margin-bottom: 0.8rem;
}

.site-footer a {
    color: #ffd166;
    text-decoration: none;
    margin: 0 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .site-header {
        padding: 2rem 15px;
    }

    .site-title {
        font-size: 2rem;
    }

    .calculator, .result, .info {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    .logo svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 1rem;
    }

    select, input[type="datetime-local"] {
        padding: 0.65rem;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
