@font-face {
    font-family: HelveticaNeueLTGEO55Roman;
    src: url(../fonts/HelveticaNeueLTGEO55Roman.ttf);
}
@font-face {
    font-family: NotoSerifGeorgianVariableFontwdthwght;
    src: url(../fonts/NotoSerifGeorgianVariableFontwdthwght.ttf);
}

body {
    font-family: 'NotoSerifGeorgianVariableFontwdthwght', sans-serif;
    background-color: #f8f2e9;
    display: flex;
    justify-content: center;
    padding: 20px;
    scrollbar-width: thin;           /* Firefox */
    scrollbar-color: #00589c #f8f2e9; /* Firefox thumb და background */
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px; /* სიგანე */
}

::-webkit-scrollbar-track {
    background: #f8f2e9; /* ბექგრაუნდი */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #00589c; /* thumb */
    border-radius: 10px;
    border: 2px solid #f8f2e9; /* მცირე სივრცე გვერდებზე */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #003f6b; /* hover ფერი */
}
.form-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    margin-bottom: 50px;
}
@media (max-width: 1498px){
    body{
       justify-content: start;
    }
}
@media (max-width: 1199px){
    .form-container {
        max-width: 600px;
    }
}
@media (max-width: 768px){
    body{
        flex-wrap: wrap;
    }
    .form-container {
        max-width: 100%;
    }
    .form-preview {
        width: 100%!important;
        position: initial!important;
    }
}
@media (max-width: 668px){
    body{
        margin: 0px;
        padding: 0px;
    }
}
form#studentForm{
    padding: 30px;
}
h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    font-feature-settings: "case" 1;
}
form > div {
    margin-bottom: 15px;
}
label {
    font-feature-settings: "case" 1;
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}
input, select {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input:focus, select:focus {
    outline: none;
    border-color: #d9b341;
}
input.error, select.error {
    border-color: red;
}
input.valid, select.valid {
    border-color: green;
}
input[type="radio"] {
    width: auto;
    margin-right: 10px;
}
.file-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.file-inputs input {
    width: calc(50% - 5px);
}
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 3px;
}
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    background-color: #00589c;
    color: #fff;
    font-size: 24px;
    font-family: "NotoSerifGeorgianVariableFontwdthwght";
    cursor: pointer;
    transition: 0.3s;
    font-feature-settings: "case" 1;
    margin-top: 20px;
}
button:hover {
    background-color: #d9b341;
}
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 0;
    overflow: hidden;
    z-index: 999;
}
.progress {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    text-align: center;
    color: #fff;
    line-height: 20px;
    font-size: 12px;
    transition: width 0.3s;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #00589c;
    color: #fff;
    padding: 15px 30px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-left img.logo {
    height: 100px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    font-feature-settings: "case" 1;
}

.header-right {
    text-align: right;
    font-size: 14px;
}

.header-right a {
    color: #f8f2e9;
    text-decoration: none;
}

.header-right a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header-right {
        text-align: center;
        margin-top: 10px;
    }
}


/* File upload style */
.file-upload-wrapper {
    margin-bottom: 5px;
}
.file-items{
    margin-bottom: 15px;
}
.file-items h5{
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    font-size: 18px;
    font-feature-settings: "case" 1;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    font-weight: 400;
}
.file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f2e9;
    border: 2px dashed #00589c;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    position: relative;
    text-align: center;
    margin-bottom: 5px;
}
.file-upload:hover {
    background-color: #e6e0d8;
}
.file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}
.file-preview {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.file-preview .file-item {
    border: 2px solid #00589c;
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    max-width: 150px;
    word-break: break-word;
    font-size: 12px;
}
.file-preview .file-item img {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 3px;
    height: 100px;
}




/* Live preview სტილი */
.form-preview {
    padding: 15px;
    background-color: #f1f4f9;
    border: 2px solid #00589c;
    border-radius: 15px;
    font-size: 14px;
    position: fixed;
    right: 15px;
    width: 300px;
    overflow: hidden;
    overflow-y: scroll;
    max-height: 95vh;
}
.form-preview h3 {
    margin-bottom: 10px;
    color: #00589c;
}
.form-preview div {
    margin-bottom: 5px;
}
.form-preview img {
    display: inline-block;
}


input[type="date"] {
    width: initial;
}

.consent-text :is(p,li){
    font-size: 11px;
}
.consent-text{
    background: #f5f3f3;
    padding: 20px;
    margin-top: 15px;
    border-radius: 20px;
}