* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Bahij Halvetica";
    src: url("/fonts/Bahijlight.ttf") format('truetype');
    font-weight: lighter;
}


body {
    font-family: "Bahij Halvetica";
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    font-family: "Bahij Halvetica";
  }
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
    color: #333;
  }

header .logo {
    max-width: 250px;
    margin-bottom: 10px;
    margin-left: -20%;
    margin-top: 10px;
}

header h1 {
    font-size: 3rem;
    margin-top: 10px;
    margin-left: auto;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 1px;
}

.form-container {
    width: 80%;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    direction: rtl;
}

h3 {
    color: #068b8b;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: lighter;
    margin-bottom: 8px;
    font-size: 1rem;
}

input, select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border 0.3s;
    font-family: "Bahij Halvetica";
}

input:focus, select:focus {
    border-color: #068b8b;
}

input[type="date"] {
    cursor: pointer;
}

input[type="text"], input[type="email"] {
    font-family: "Bahij Halvetica";
}

select {
    background-color: #fff;
    cursor: pointer;
}

textarea {
    resize: vertical;
}

.text-danger {
    color: red;
    font-size: 0.9rem;
}

.success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #d1e7dd;
}

.error-messages ul {
    list-style-type: none;
    padding: 0;
}

.error-messages ul li {
    color: red;
    font-size: 0.9rem;
}

.form-section {
    margin-bottom: 30px;
}

button[type="submit"] {
    background-color: #00A19A;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 100px;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #272A5F ;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        width: 90%;
    }
}
