/* ==========================================================
   DOGS DAILY CARE — DOG AGE CALCULATOR
========================================================== */

.dac-page {
    background: #ffffff;
    color: #34332f;
}

.dac-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.dac-eyebrow {
    margin: 0 0 10px;
    color: #657a68;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.dac-hero {
    padding: 72px 20px 68px;
    background:
        linear-gradient(
            135deg,
            #f7f5ef 0%,
            #f7f5ef 55%,
            #efe8dc 100%
        );
    text-align: center;
}

.dac-hero .dac-container {
    width: min(850px, 100%);
}

.dac-hero h1 {
    margin: 0 auto 18px;
    color: #263e32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.dac-hero-text {
    max-width: 720px;
    margin: 0 auto;
    color: #5e5c57;
    font-size: 18px;
    line-height: 1.7;
}

.dac-tool-section {
    padding: 70px 20px 80px;
    background: #ffffff;
}

.dac-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.dac-calculator-card,
.dac-result-card {
    border: 1px solid #e5ded1;
    border-radius: 20px;
    box-shadow: 0 14px 45px rgba(38, 62, 50, 0.07);
}

.dac-calculator-card {
    padding: 38px;
    background: #ffffff;
}

.dac-card-heading {
    margin-bottom: 30px;
}

.dac-card-heading h2 {
    margin: 0 0 10px;
    color: #263e32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.15;
}

.dac-card-heading > p:last-child {
    margin: 0;
    color: #68655f;
    font-size: 16px;
    line-height: 1.65;
}

.dac-form {
    display: grid;
    gap: 23px;
}

.dac-field label {
    display: block;
    margin-bottom: 8px;
    color: #34332f;
    font-size: 15px;
    font-weight: 700;
}

.dac-optional {
    color: #817c73;
    font-size: 13px;
    font-weight: 500;
}

.dac-form input,
.dac-form select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #ffffff;
    color: #34332f;
    border: 1px solid #cec7bb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dac-form input:focus,
.dac-form select:focus {
    border-color: #263e32;
    box-shadow: 0 0 0 3px rgba(38, 62, 50, 0.10);
}

.dac-age-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dac-age-grid small {
    display: block;
    margin-top: 6px;
    color: #777168;
    font-size: 12px;
}

.dac-weight-row {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 10px;
}

.dac-help {
    display: block;
    margin-top: 7px;
    color: #817c73;
    font-size: 12px;
    line-height: 1.5;
}

.dac-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8b867e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dac-divider::before,
.dac-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e4ded3;
}

.dac-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    margin-top: 4px;
    background: #263e32;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dac-submit:hover,
.dac-submit:focus-visible {
    background: #1d3026;
    transform: translateY(-1px);
}

.dac-result-card {
    position: sticky;
    top: 30px;
    overflow: hidden;
    background: #f7f5ef;
}

.dac-result-empty {
    padding: 55px 34px;
    text-align: center;
}

.dac-paw {
    display: block;
    margin-bottom: 18px;
    font-size: 44px;
}

.dac-result-empty h2 {
    margin: 0 0 10px;
    color: #263e32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.2;
}

.dac-result-empty p {
    margin: 0;
    color: #6b675f;
    font-size: 15px;
    line-height: 1.6;
}

.dac-result-content {
    padding: 36px;
}

.dac-human-age {
    padding: 26px 20px;
    margin-bottom: 25px;
    background: #263e32;
    color: #ffffff;
    border-radius: 16px;
    text-align: center;
}

.dac-human-age span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
}

.dac-human-age small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.dac-result-details {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.dac-result-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #ddd5c8;
}

.dac-result-details span {
    color: #706b63;
    font-size: 14px;
}

.dac-result-details strong {
    max-width: 62%;
    color: #263e32;
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
}

.dac-result-message {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5ded1;
    border-radius: 12px;
}

.dac-result-message h3 {
    margin: 0 0 8px;
    color: #263e32;
    font-size: 18px;
}

.dac-result-message p {
    margin: 0;
    color: #625f59;
    font-size: 14px;
    line-height: 1.6;
}

.dac-disclaimer {
    margin: 18px 0 0;
    color: #777168;
    font-size: 12px;
    line-height: 1.55;
}

.dac-content-section {
    padding: 80px 20px 95px;
    background: #f7f5ef;
}

.dac-content-container {
    width: min(820px, 100%);
    margin: 0 auto;
    color: #494741;
    font-size: 17px;
    line-height: 1.75;
}

.dac-content-container h2 {
    margin: 48px 0 15px;
    color: #263e32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.dac-content-container > h2:first-child {
    margin-top: 0;
}

.dac-content-container p {
    margin: 0 0 20px;
}

.dac-chart-wrap {
    margin: 45px 0;
}

.dac-table-hint {
    display: none;
    margin: -4px 0 10px !important;
    color: #767169;
    font-size: 13px;
    line-height: 1.5;
}

.dac-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd5c8;
    border-radius: 14px;
    background: #ffffff;
}

.dac-age-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.dac-age-table th,
.dac-age-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ebe5dc;
    text-align: center;
}

.dac-age-table th {
    background: #263e32;
    color: #ffffff;
    font-size: 14px;
}

.dac-age-table td:first-child {
    color: #263e32;
    font-weight: 700;
}

.dac-chart-note {
    margin-top: 10px !important;
    color: #767169;
    font-size: 13px;
}

.dac-sources {
    margin-top: 48px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #ddd6ca;
    border-radius: 12px;
}

.dac-sources h2 {
    margin-top: 0;
}

.dac-source-links {
    margin-bottom: 0 !important;
    font-size: 14px;
}

.dac-source-links a {
    color: #263e32;
    font-weight: 700;
    text-underline-offset: 3px;
}

.dac-faq {
    margin-top: 55px;
}

.dac-faq details {
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ddd6ca;
    border-radius: 10px;
}

.dac-faq summary {
    padding: 17px 20px;
    color: #263e32;
    font-weight: 700;
    cursor: pointer;
}

.dac-faq details p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 15px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .dac-tool-layout {
        grid-template-columns: 1fr;
    }

    .dac-result-card {
        position: static;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .dac-container {
        width: min(100% - 28px, 1180px);
    }

    .dac-hero {
        padding: 54px 14px 50px;
    }

    .dac-hero h1 {
        margin-bottom: 16px;
        font-size: 36px;
        line-height: 1.08;
    }

    .dac-hero-text {
        font-size: 16px;
        line-height: 1.65;
    }

    .dac-tool-section {
        padding: 42px 14px 58px;
    }

    .dac-calculator-card {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .dac-card-heading {
        margin-bottom: 26px;
    }

    .dac-card-heading h2 {
        font-size: 28px;
    }

    .dac-card-heading > p:last-child {
        font-size: 15px;
        line-height: 1.6;
    }

    .dac-field label {
        font-size: 15px;
    }

    .dac-help,
    .dac-age-grid small {
        font-size: 13px;
        line-height: 1.5;
    }

    .dac-form {
        gap: 21px;
    }

    .dac-age-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dac-weight-row {
        grid-template-columns: 1fr 78px;
    }

    .dac-result-content {
        padding: 26px 18px;
    }

    .dac-result-empty {
        padding: 42px 22px;
    }

    .dac-human-age {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .dac-human-age span {
        font-size: 60px;
    }

    .dac-result-details strong {
        max-width: 58%;
    }

    .dac-content-section {
        padding: 58px 16px 72px;
    }

    .dac-content-container {
        font-size: 16px;
        line-height: 1.72;
    }

    .dac-content-container h2 {
        margin-top: 40px;
        font-size: 28px;
    }

    .dac-table-hint {
        display: block;
    }

    .dac-age-table {
        min-width: 560px;
    }

    .dac-age-table th,
    .dac-age-table td {
        padding: 12px 13px;
    }

    .dac-sources {
        margin-top: 40px;
        padding: 20px 17px;
    }

    .dac-faq summary {
        padding: 16px 17px;
    }

    .dac-faq details p {
        padding: 0 17px 17px;
    }

}
