
/* =================================
   NAVY BLUE THEME
================================= */

:root {
    --navy: #142B4A;
    --blue: #285783;
    --blue-light: #DCEAF5;
    --blue-pale: #EEF4F9;
    --background: #F3F6FA;
    --border: #D5DFE9;
    --text: #263648;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* FORMULAR */

form[name="FormAbonare"] {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border-top: 5px solid var(--navy);
    box-shadow: 0 4px 20px rgba(20,43,74,0.09);
}

/* TITLURI */

form[name="FormAbonare"] b {
    color: var(--navy);
}

form[name="FormAbonare"] p {
    margin-top: 22px;
    margin-bottom: 12px;
}

form[name="FormAbonare"] hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* RADIO */

form[name="FormAbonare"] input[type="radio"] {
    accent-color: var(--blue);
    width: 17px;
    height: 13px;
    vertical-align: middle;
    margin-right: 10px;
    margin-left: 5px;
    cursor: pointer;
}

/* TABEL PRODUSE */

form[name="FormAbonare"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

form[name="FormAbonare"] table td {
    padding: 8px 7px;
    border-bottom: 1px solid #E8EDF2;
    font-size: 12px;
}

form[name="FormAbonare"] table tr:first-child {
    background: var(--navy);
    color: white;
}

form[name="FormAbonare"] table tr:first-child td,
form[name="FormAbonare"] table tr:first-child td b {
    color: white;
}

form[name="FormAbonare"] table tr:not(:first-child):hover {
    background: var(--blue-pale);
}

/* INPUTURI */

form[name="FormAbonare"] input[type="text"] {
    max-width: 100%;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font-size: 12px;
    transition: 0.2s;
}

form[name="FormAbonare"] input[type="text"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(40,87,131,0.12);
}

form[name="FormAbonare"] input[readonly] {
    background: var(--blue-pale) !important;
    color: var(--navy);
    font-weight: bold;
    text-align: right;
}

/* TOTAL */

#total {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--navy) !important;
    background: var(--blue-light) !important;
    border: 1px solid #B7CEE1 !important;
}

/* BUTOANE */

form[name="FormAbonare"] input[type="button"],
form[name="FormAbonare"] input[type="submit"] {
    padding: 6px 25px;
    border: 0;
    border-radius: 7px;
    background: var(--navy);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

form[name="FormAbonare"] input[type="button"]:hover,
form[name="FormAbonare"] input[type="submit"]:hover {
    background: var(--blue);
}

form[name="FormAbonare"] input[type="submit"] {
    min-width: 220px;
    padding: 6px 30px;
}

/* DATE ABONAT */

form[name="FormAbonare"] ul {
    padding-left: 10px;
}

form[name="FormAbonare"] li {
    margin-bottom: 10	px;
}

/* TABLETA */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    form[name="FormAbonare"] {
        padding: 20px 14px;
        margin: 5px auto;
    }

    form[name="FormAbonare"] table td {
        padding: 9px 5px;
    }
}

/* TELEFON */

@media (max-width: 600px) {

    body {
        padding: 5px;
        font-size: 14px;
    }

    form[name="FormAbonare"] {
        padding: 15px 10px;
        border-radius: 8px;
    }

    form[name="FormAbonare"] table {
        display: block;
        width: 100%;
    }

    form[name="FormAbonare"] table tbody {
        display: block;
        width: 100%;
    }

    form[name="FormAbonare"] table tr {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 8px 4px;
        border-bottom: 1px solid var(--border);
    }

    form[name="FormAbonare"] table tr:first-child {
        display: none;
    }

    form[name="FormAbonare"] table td {
        display: block;
        width: 100%;
        padding: 4px;
        border: 0;
    }

    form[name="FormAbonare"] table tr:not(:first-child) td:first-child {
        font-weight: bold;
        color: var(--navy);
        padding-bottom: 7px;
    }

    form[name="FormAbonare"] table input[type="text"] {
        width: 75px;
        padding: 9px 5px;
        text-align: center;
    }

    form[name="FormAbonare"] table input[readonly] {
        width: 95px;
        text-align: right;
    }

    #total {
        width: 120px !important;
        font-size: 20px !important;
    }

    form[name="FormAbonare"] ul {
        padding-left: 15px;
    }

    form[name="FormAbonare"] li {
        margin-bottom: 6px;
    }

    form[name="FormAbonare"] li input[type="text"] {
        display: block;
        width: 100% !important;
        margin-top: 6px;
    }

    #observatii {
        display: block;
        width: 100% !important;
        margin-top: 6px;
    }

    form[name="FormAbonare"] input[type="button"],
    form[name="FormAbonare"] input[type="submit"] {
        width: 100%;
        padding: 15px;
        margin-top: 8px;
    }
}

/* Campuri pentru numarul de exemplare - crem deschis */

form[name="FormAbonare"] table input:not([readonly]) {
    background-color: #FFF8E8 !important;
    border: 1px solid #E5D5B5 !important;
    color: #142B4A;
    font-weight: bold;
    text-align: center;
}

/* La selectarea campului */
form[name="FormAbonare"] table input:not([readonly]):focus {
    background-color: #FFF3D6 !important;
    border-color: #B99B65 !important;
    box-shadow: 0 0 0 3px rgba(185,155,101,0.15);
}

/* Mic?orarea spa?iului dintre rândurile tabelului */
form[name="FormAbonare"] table td {
    padding: 3px 6px !important;
    line-height: 1.3;
}

/* Casete de text ?i numere la dimensiuni standard */
form[name="FormAbonare"] input[type="text"],
form[name="FormAbonare"] input[type="number"] {
    height: 22px !important;
    min-height: 0 !important;
    padding: 2px 5px !important;
    font-size: 13px !important;
    box-sizing: border-box;
}

/* Butoane radio la dimensiune normală */
form[name="FormAbonare"] input[type="radio"] {
    width: 13px !important;
    height: 13px !important;
    margin: 0 4px 0 0 !important;
    vertical-align: middle;
}

/* Textul optiunilor radio */
form[name="FormAbonare"] input[type="radio"] + label {
    font-size: 13px;
    line-height: 1.2;
    margin-left: 2px;
}

/* Dimensiunea textului din liste */
form[name="FormAbonare"] ul,
form[name="FormAbonare"] li {
    font-size: 13px !important;
    line-height: 1.3;
}

/* Spa?ierea dintre elementele listei */
form[name="FormAbonare"] li {
    margin-bottom: 3px;
    padding: 0;
}

/* Stilul paragrafelor */
form[name="FormAbonare"] p {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 2;
    color: #263648;
}
form[name="FormAbonare"] li input:not([type="radio"]):not([type="button"]):not([type="submit"]) {
    background-color: #FFF8E8 !important;
    border: 1px solid #E5D5B5 !important;
    color: #142B4A;
}