* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    background: #ff6b00;
    color: white;
    padding: 20px;
    text-align: center;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.form-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

label.required:after {
    content: " *";
    color: #ff6b00;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #ff6b00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
    background-color: white;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    font-size: 100px;
    opacity: 0;
    right: 0;
    top: 0;
}

.file-input-button {
    display: inline-block;
    padding: 12px 15px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    width: 100%;
    text-align: right;
}

.file-input-button:hover {
    background: #e0e0e0;
}

.file-name {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

.submit-btn {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #e05d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-wrapper {
        border-radius: 10px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-body {
        padding: 20px;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 13px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 15px;
    }
    
    .form-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}


.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 50%;
    top: 0;
    transform: translateX(50%);
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
}

.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 10px #0003;
    animation: fadeIn 0.4s ease-in-out;
    position: relative;
}

.popup-content.success {
    border-right: 6px solid green;
}

.popup-content.error {
    border-right: 6px solid red;
}

.close-popup {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
