.alco-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
    margin-bottom: 36px;
    align-items: start;
}

.alco-sidebar-stack {
    display: grid;
    gap: 18px;
    align-self: start;
}

.alco-helper-box,
.alco-disclaimer,
.alco-example-card,
.alco-stat-card,
.alco-form-field,
.alco-drink-item,
.calc-sidebar-intro-box,
.calc-sidebar-links-box,
.alco-common-body-fallback {
    box-sizing: border-box;
}

.calc-sidebar-intro-box,
.calc-sidebar-links-box {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 28px rgba(15, 42, 64, 0.05);
}

.calc-sidebar-intro-box h3,
.calc-sidebar-links-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
    color: #163a5f;
    font-weight: 700;
}

.calc-sidebar-intro-box p,
.calc-sidebar-links-box p {
    margin: 0;
    color: #334155;
    line-height: 1.72;
}

.calc-sidebar-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-sidebar-links-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d7e7f7;
    color: #15416b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.calc-sidebar-links-list a:hover {
    background: #ffffff;
    border-color: #c9dced;
    transform: translateY(-1px);
}

.alco-helper-box {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(15, 42, 64, 0.05);
    align-self: start;
}

.alco-helper-box h3 {
    margin: 0 0 14px;
    font-size: 21px;
    line-height: 1.3;
    color: #163a5f;
    font-weight: 700;
}

.alco-helper-box ul {
    margin: 0;
    padding-left: 20px;
}

.alco-helper-box li {
    margin-bottom: 11px;
    line-height: 1.65;
    color: #334155;
}

.alco-inline-note {
    margin-top: 18px;
    padding: 15px 16px;
    background: #eef6ff;
    border: 1px solid #d4e7fb;
    border-radius: 9px;
    color: #23415c;
    line-height: 1.7;
    font-size: 14px;
}

.alco-disclaimer {
    margin-top: 24px;
    padding: 17px 18px;
    border-left: 4px solid #c58b18;
    background: #fff9eb;
    color: #5a4a1b;
    line-height: 1.75;
    border-radius: 8px;
}

.alco-common-body-fallback {
    padding: 18px 20px;
    border: 1px solid #e2eaf2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbfe 100%);
    box-shadow: 0 8px 24px rgba(15, 42, 64, 0.03);
}

.alco-common-body-fallback p {
    margin: 0;
    color: #334155;
    line-height: 1.75;
}

#calculatoare-alcoolemie-in-sange .calc-box {
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    border: 1px solid #e8edf3;
}

#calculatoare-alcoolemie-in-sange .calc-section-title {
    margin-bottom: 18px;
}

#calculatoare-alcoolemie-in-sange .calc-form.alco-form {
    margin-top: 8px;
}

#calculatoare-alcoolemie-in-sange .alco-form-row {
    display: grid;
    gap: 18px 20px;
    margin-bottom: 18px;
}

#calculatoare-alcoolemie-in-sange .alco-form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#calculatoare-alcoolemie-in-sange .alco-form-field {
    min-width: 0;
}

#calculatoare-alcoolemie-in-sange .alco-form-field-wide {
    grid-column: 1 / -1;
}

.alco-form-field-time {
    max-width: 620px;
}

#calculatoare-alcoolemie-in-sange .calc-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #163a5f;
    letter-spacing: 0.1px;
}

#calculatoare-alcoolemie-in-sange .calc-input,
#calculatoare-alcoolemie-in-sange .calc-select {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d7dee8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #15395d;
    font-size: 18px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#calculatoare-alcoolemie-in-sange .calc-input:focus,
#calculatoare-alcoolemie-in-sange .calc-select:focus {
    outline: none;
    border-color: #88b6df;
    box-shadow: 0 0 0 4px rgba(0, 121, 193, 0.08);
    background: #ffffff;
}

#calculatoare-alcoolemie-in-sange .calc-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #0079C1 50%),
        linear-gradient(135deg, #0079C1 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.calc-field-help {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

.alco-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
    align-items: start;
}

.alco-time-field {
    min-width: 0;
}

.alco-time-label {
    display: block;
    margin: 0 0 10px;
    color: #5f6f82;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.15px;
}

.alco-drinks-box {
    margin: 10px 0 18px;
    padding: 18px;
    border: 1px solid #e2eaf2;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7fafe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.alco-drinks-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.alco-drinks-header h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #163a5f;
}

.alco-drinks-header p {
    margin: 0;
    color: #627285;
    line-height: 1.65;
}

.alco-add-drink {
    appearance: none;
    border: 1px solid #d8e4f0;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    color: #163a5f;
    border-radius: 14px;
    padding: 14px 18px;
    min-height: 56px;
    cursor: pointer;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.22s ease;
    box-shadow: 0 8px 20px rgba(15, 42, 64, 0.05);
}

.alco-add-drink:hover {
    background: #ffffff;
    border-color: #cfdceb;
    transform: translateY(-1px);
}

.alco-drink-item {
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    box-shadow: 0 8px 24px rgba(15, 42, 64, 0.04);
    margin-bottom: 14px;
}

.alco-drink-item:last-child {
    margin-bottom: 0;
}

.alco-drink-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.alco-drink-number {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f8fc;
    border: 1px solid #e1e8f0;
    color: #163a5f;
    font-size: 14px;
    font-weight: 700;
}

.alco-remove-drink {
    appearance: none;
    border: 1px solid #eed5d5;
    background: #fff8f8;
    color: #934848;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.alco-remove-drink:hover {
    background: #fff1f1;
    border-color: #e6bcbc;
}

.alco-drink-row-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.alco-drink-row-bottom {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.alco-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

#calculatoare-alcoolemie-in-sange .calc-button {
    min-width: 210px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 121, 193, 0.12);
}

#calculatoare-alcoolemie-in-sange .calc-button-secondary {
    background: #eef4fa;
    color: #15395d;
    border: 1px solid #d7e3f0;
    box-shadow: none;
}

#calculatoare-alcoolemie-in-sange .calc-button-secondary:hover {
    background: #e7eff8;
}

#calculatoare-alcoolemie-in-sange .calc-result {
    margin-top: 28px;
    border-radius: 18px;
    border: 1px solid #dbe4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
    padding: 22px;
}

.alco-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.alco-result-mode {
    margin-top: 6px;
    color: #667085;
    line-height: 1.5;
    font-size: 15px;
}

.alco-badge {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid #e5eaf1;
    color: #15395d;
    font-size: 0.92rem;
    font-weight: 700;
}

.alco-result-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.alco-stat-card {
    padding: 18px;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid #e5eaf0;
}

.alco-stat-card-highlight {
    background: linear-gradient(135deg, #17385f 0%, #0f2741 100%);
    border-color: transparent;
}

.alco-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 0.92rem;
}

.alco-stat-card strong {
    display: block;
    color: #101828;
    font-size: 1.16rem;
    line-height: 1.4;
    word-break: break-word;
}

.alco-stat-card-highlight .alco-stat-label,
.alco-stat-card-highlight strong,
.alco-stat-card-highlight .alco-stat-unit {
    color: #ffffff;
}

.alco-stat-unit {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 0.88rem;
}

.alco-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.alco-result-card {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e9ef;
}

.alco-result-label {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 0.92rem;
}

.alco-result-card strong {
    display: block;
    color: #101828;
    font-size: 1.05rem;
    line-height: 1.45;
    word-break: break-word;
}

.alco-table-box {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
    border: 1px solid #e5ebf2;
}

.alco-table-box h4 {
    margin: 0 0 14px;
    font-size: 1.02rem;
    color: #163a5f;
}

.alco-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.alco-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    overflow: hidden;
}

.alco-table th,
.alco-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    color: #334155;
    line-height: 1.5;
    font-size: 14px;
}

.alco-table th {
    background: #f8fbff;
    color: #163a5f;
    font-weight: 700;
}

.alco-table tbody tr:last-child td {
    border-bottom: none;
}

.alco-warning-box {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f2dfaa;
    color: #6b5a22;
    line-height: 1.7;
    font-weight: 700;
}

.alco-result-extra {
    color: #4b5565;
    line-height: 1.72;
    margin-bottom: 8px;
}

.alco-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.alco-example-card {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(15, 42, 64, 0.04);
}

.alco-example-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #163a5f;
    font-weight: 700;
}

.alco-example-card p {
    margin: 0;
    line-height: 1.75;
    color: #334155;
}

@media (max-width: 1080px) {
    .alco-grid {
        grid-template-columns: 1fr;
    }

    .alco-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    #calculatoare-alcoolemie-in-sange .alco-form-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alco-result-top-grid,
    .alco-result-grid {
        grid-template-columns: 1fr;
    }

    .alco-drink-row-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #calculatoare-alcoolemie-in-sange .alco-form-row,
    #calculatoare-alcoolemie-in-sange .alco-form-row-2,
    .alco-drink-row-top,
    .alco-drink-row-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .alco-form-field-time {
        max-width: none;
    }

    .alco-time-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #calculatoare-alcoolemie-in-sange .calc-input,
    #calculatoare-alcoolemie-in-sange .calc-select {
        font-size: 17px;
        min-height: 56px;
    }

    #calculatoare-alcoolemie-in-sange .calc-button {
        width: 100%;
        min-width: 0;
    }

    .alco-action-row {
        flex-direction: column;
    }

    .alco-result-header,
    .alco-drinks-header,
    .alco-drink-top {
        flex-direction: column;
        align-items: stretch;
    }

    .alco-badge {
        white-space: normal;
    }

    .alco-add-drink,
    .alco-remove-drink {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .calc-sidebar-links-list {
        gap: 8px;
    }

    .calc-sidebar-links-list a {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        min-height: 44px;
    }
}