/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    line-height: 1.6;
}



/* Container & Heading */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--text-color-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form Styles */
form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: normal;
}

/* Image Previews */
#profile_preview {
    display: block;
    margin: 10px auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* Keep Iqama image (#preview) rectangular without circle */
#preview {
    display: block;
    margin: 10px auto;
    max-width: 150px;
    border: 1px solid #ddd;
    border-radius: 5px;
    /* subtle rounded corners */
}


/* Sections */
#skilled-section,
#unskilled-section {
    background-color: #f9f9f9;
    margin-top: 1rem;
}

#unskilled-category-label {
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Button */
button {
    margin-top: 4vw;
    padding: 1.5vw;
    background: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    touch-action: manipulation;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:disabled {
    background: gray;
    cursor: not-allowed;
}

button:hover {

    background-color: var(--primary-color);
    box-shadow: 0 6px 18px var(--primary-color);
}


/* Status Message */
#status {
    text-align: center;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 600px) {

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }

}