/* Importing Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* 🔑 CORECȚIE: Folosim min-height și padding pentru a face loc notificării */
    min-height: 100vh; 
    display: flex;
    /* Începe aranjarea elementelor de sus */
    justify-content: flex-start; 
    /* Adaugă spațiu de sus pentru a nu fi obturat mesajul */
    /* padding: 30px 10px 10px 10px; */
    /* Centrează elementele (notificarea și containerul) pe orizontală */
    /* align-items: center; */
    flex-direction: column; 
}

/* Stil pentru notificare (Adăugat și ajustat) */
.notification {
    padding: 15px;
    /* Asigură-te că există o margine superioară vizibilă */
    margin-top: 10px; 
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Lățimea maximă similară cu containerul formularului */
    max-width: 700px; 
    width: 100%;
}

.notification.success {
    /* Verde deschis */
    background-color: #d4edda; 
    /* Text verde închis */
    color: #155724;          
    border: 1px solid #c3e6cb;
	margin: 82px auto -30px;
}

.notification.error {
    /* Roșu deschis */
    background-color: #f8d7da; 
    /* Text roșu închis */
    color: #721c24;          
    border: 1px solid #f5c6cb;
	margin: 82px auto -30px;
}
/* Sfârșit notificare */

.container {
    max-width: 700px;
    width: 100%;
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 5px;
    /* Marginea de sus este gestionată de margin-bottom din .notification */
    /* margin-top: 5px; */ 
}

.container .title {
    font-size: clamp(15px,5vw,25px);
	color: var(--albastru-mov);
    font-weight: 500;
    position: relative;
}

.container .title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #71b7e6, #9b59b6);
}

.content form .user-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0 12px 0;
}

form .user-details .input-box {
    margin-bottom: 15px;
    width: calc(100% / 2 - 20px);
}

form .input-box .details { 
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Stiluri pentru INPUT și SELECT */
.user-details .input-box input { 
    height: 40px;
    width: 100%;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    padding-left: 15px;
    border: 1px solid #000;
    transition: all 0.3s ease;
    padding-right: 15px;
    /* Ascunde săgeata implicită a select-ului și adaugă una personalizată */
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         
    /* background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" fill="%234d4d4d"><path d="M287 78.4L146.2 219.2 5.4 78.4h281.6z"/></svg>') no-repeat right 8px center / 12px 12px; */
}

.user-details .input-box select { 
    height: 40px;
    width: 100%;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    padding-left: 15px;
    border: 1px solid #000;
    transition: all 0.3s ease;
    padding-right: 15px;
    /* Ascunde săgeata implicită a select-ului și adaugă una personalizată */
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         
    background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" fill="%234d4d4d"><path d="M287 78.4L146.2 219.2 5.4 78.4h281.6z"/></svg>') no-repeat right 8px center / 12px 12px;
}

.user-details .input-box input:focus,
.user-details .input-box input:valid,
.user-details .input-box select:focus,
.user-details .input-box select:valid {
    border-color: #9b59b6;
}

form .gender-details .gender-title,
form .acord-details .acord-title,
form .signature-details .signature-title { /* Adăugat .signature-title */
    font-size: 20px;
    font-weight: 500;
}

/* Stiluri pentru Semnătură (nou adăugat/ajustat) */
.signature-details {
    margin: 20px 0;
}

.signature-box {
    margin: 10px 0;
    text-align: center;
}

#signatureCanvas {
    /* Asigură-te că lățimea vizuală ocupă tot spațiul disponibil */
    width: 100%; 
    /* 🔥 Mărește această valoare pentru o zonă mai mare pe verticală */
    height: 300px; /* Sau o altă valoare mai mare, de ex. 250px */
    
    /* Păstrează stilurile vizuale de margine */
    max-width: 100%;
}

.signature-actions {
    text-align: center;
    margin-top: 10px;
}

#clearSignature {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s;
}

#clearSignature:hover {
    background-color: #e8e8e8;
}

/* Stiluri pentru gender și acord (fără modificări majore) */
form .gender-details .category {
    display: flex;
    width: 80%;
    margin: 14px 0;
    justify-content: space-between;
}

form .gender-details .category label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

form .gender-details .category label .dot {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    margin-right: 10px;
    background: #d9d9d9;
    border: 5px solid transparent;
    transition: all 0.3s ease;
}

#dot-1:checked~.category label .one,
#dot-2:checked~.category label .two,
#dot-3:checked~.category label .three {
    background: #9b59b6;
    border-color: #d9d9d9;
}

.acord-details .category {
    display: block; 
    width: 100%; 
    margin: 10px 0;
}

.acord-details .category label {
    display: flex; 
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.acord-details .category label input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 8px;
    height: 16px; 
    width: 16px;
}

form input[type="radio"] {
    display: none;
}

form .button {
	width: 50%;
    height: 45px;
    margin: auto;
}

form .button input {
    height: 100%;
    width: 100%;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--albastru-mov);
}

form .button input:hover {
    background: linear-gradient(-135deg, #71b7e6, #9b59b6);
}

/* Responsive media query code for mobile devices */
@media(max-width: 584px) {
    .container {
        max-width: 100%;
    }
    
    .notification {
        max-width: 100%;
    }
    
    /* Ajustează lățimea canvas-ului pe mobil */
    #signatureCanvas {
        width: 100%; 
        height: 200px; /* Poți ajusta înălțimea pentru mobil */
    }

    form .user-details .input-box {
        margin-bottom: 15px;
        width: 100%;
    }

    form .gender-details .category {
        width: 100%;
    }

    .user-details::-webkit-scrollbar {
        width: 5px;
    }
}

@media(max-width: 459px) {
    .container .content .category {
        flex-direction: column;
    }
}