:root {
    --btn-fg: #474544;
    --btn-bg-hover: #474544;
    --btn-fg-hover: #f2f3eb;
    --ta-fg: #474544;
    --ta-border: #474544;
    --ta-focus: #80bdff;
}

::-webkit-input-placeholder {
    color: #474544;
}

:-moz-placeholder {
    color: #474544;
    opacity: 1;
}

::-moz-placeholder {
    color: #474544;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #474544;
}

.harta-resize {
    width: 100%;
    height: 25em;
    /* Default pentru desktop/tableta */
}

.contact {
    display: grid;
    gap: 5em;
    grid-template-columns: repeat(2, 1fr);
    align-self: center;
}

.div-contact {
    border: solid 3px slategrey;
    width: 90%;
    position: relative;
    margin: 1rem auto;
    border-radius: 10px;
}

.titlu-contact {
    color: #474544;
    margin-top: 20px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 7px;
    text-align: center;
    text-transform: uppercase;
}

.linie-orizontala-contact {
    border-bottom: solid 2px #474544;
    margin: 1em auto;
    width: 80px;
}

.input-contact {
    -webkit-appearance: none;
    appearance: none;
    border-color: #474544;
    background: none;
    border: none;
    border-bottom: solid 2px #474544;
    color: #474544;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0em 0 1.875em 0;
    padding: 0 0 0.875em 0;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
    border-radius: 5px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: block;
}

.input-contact:focus {
    outline: none;
    padding: 0 0 0.875em 0;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    border-top-color: #80bdff;
    border-left-color: #80bdff;
    border-right-color: #80bdff;
}

.submit-contact {
    border: 2px solid var(--btn-fg);
    background: transparent;
    color: var(--btn-fg);
    cursor: pointer;
    display: inline-block;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 0.875em;
    font-weight: 700;
    padding: 20px 35px;
    text-transform: uppercase;
    transition: background .3s, color .3s, box-shadow .3s, border-color .3s;
    width: 100%;
}

.submit-contact:hover,
.submit-contact:focus-visible {
    background: var(--btn-bg-hover);
    color: var(--btn-fg-hover);
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 69, 68, .25);
}

.submit-contact:active {
    transform: translateY(1px);
}

.textarea-contact {
    background: none;
    color: var(--ta-fg);
    font: inherit;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-bottom-color: var(--ta-border);
    border-radius: 5px;
    margin: 0 0 1.875em 0;
    padding: 0 0 0.875em 0;
    height: auto;
    resize: none;
    overflow: auto;
    transition: box-shadow .3s, border-color .3s;
}

.textarea-contact:focus-visible {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    border-color: var(--ta-focus);
}

/* Radio Buttons din forms.css */
.radio-buttons {
    display: block;
    margin-top: 20px;
    padding: 16px 24px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #333333;
    width: 99%;
    margin: 0 auto;
}

.radio-buttons h4 {
    color: #146C94;
}

.radio-buttons input[type="radio"] {
    display: none;
}

.radio-buttons br {
    display: none;
}

.radio-buttons label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
    white-space: nowrap;
}

.radio-buttons label::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #999999;
    box-sizing: border-box;
    display: inline-block;
}

.radio-buttons label:hover {
    background-color: #f1f5f9;
}

.radio-buttons input[type="radio"]:checked+label {
    background-color: rgba(0, 123, 255, 0.06);
    color: #0050b3;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4);
}

.radio-buttons input[type="radio"]:checked+label::before {
    border-color: #007bff;
    background: radial-gradient(circle at center, #007bff 0, #007bff 40%, transparent 45%);
}

.radio-buttons input[type="radio"]:focus+label {
    box-shadow: 0 0 0 2px #80bdff;
}

.observatii-buttons {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 3rem;
    align-items: center;
    margin-bottom: 4px;
}

/* CSS pentru aspectul in doua coloane */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Permite trecerea pe urmatorul rand pe ecrane mici */
    gap: 2rem;
    /* Spatiul dintre coloane */
    max-width: 1200px;
    margin: 3rem auto 4rem auto;
    padding: 0 15px;
}

/* Coloana din stânga (Informații) */
.contact-info-col {
    flex: 1 1 40%;
    /* Ocupă minim 40% din spațiu pe desktop */
    background-color: #f8fafc;
    /* Un fundal foarte fin, elegant */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-col h2 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info-col h3 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.contact-info-col p {
    margin-bottom: 0.7rem;
    color: #444;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-info-col a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-col a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.contact-info-col {
    flex: 1 1 30%;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Coloana din dreapta (Formular) */
.contact-form-col {
    flex: 1 1 60%;
    /* Ocupă minim 50% din spațiu pe desktop */
    background-color: #ffffff;
    /* padding: 2.5rem; */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Regula magică pentru Mobil (Ecran mic) */
@media (max-width: 768px) {

    .contact-info-col,
    .contact-form-col {
        flex: 1 1 100%;
        /* Ambele ocupă 100% din lățime și se pun una sub alta */
        padding: 1.5rem;
    }
}

/* RESPONSIVE FORMS */
@media (max-width: 980px) {
    .contact {
        grid-template-columns: 1fr;
        gap: 2em;
    }
}

@media (max-width: 640px) {
    .harta-resize {
        height: 15em;
    }

    .observatii-buttons {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .radio-buttons label {
        white-space: normal;
    }
}