/*
 * General Styles
 */
:root {
    --bg-color-form: #2B414F; 
    --text-color-heading: #FFFFFF;
    --text-color-label: #C6B98B;
    --text-color-input: #999999;
    --btn-submit-bg: #295BFF;
    --border-color: #8c9ca9;
    --border-radius-field: 8px;
    --spacing-gap: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f6f5ee;
    font-family: 'Inter', sans-serif;
    color: var(--text-color-heading);
}

.main-container {
    padding: 6px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/*
 * Header Styles
 */
.main-header {
    background-color: #f6f5ee;
    color: #FFFFFF;
    padding: 24px 40px;

    width: 100%;

 
 
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f6f5ee;
    max-width: 250px;
    max-height: 250px;
}

.logo{
    height: 60px;
    
}

.dental-odyssey-logo {
    height: 60px;
    
}

.site-title {
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.down-chevron {
    width: 14px;
    height: 14px;
}

.user-name {
    color: #2B414F;
    font-size: 14px;
}

.dental-odyssey-logo {
    height: 60px;
}

/*
 * Form Styles
 */
.form-container {
    background-color: var(--bg-color-form);
    padding: 40px;
    border-radius: var(--border-radius-field);
    width: 100%;
    max-width: 1000px;
}

.form-heading {
    font-size: 24px;
    font-weight: 600; 
    margin-bottom: 32px;
}

.form-section {
    margin-bottom: var(--spacing-gap);
}

.form-section:last-of-type {
    margin-bottom: 32px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color-label);
    margin-bottom: 24px;
}

.input-row {
    display: flex;
    gap: var(--spacing-gap);
}

.input-row input,
.input-row .select-wrapper {
    flex: 1;
    min-width: 0; /* Ensures flex items don't overflow */
}

input, select {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-field);
    color: var(--text-color-input);
    font-size: 14px;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 40px;
}

input::placeholder {
    color: var(--text-color-input);
    font-size: 14px;
}

select {
    color: var(--text-color-input);
    cursor: pointer;
}

select option {
    background-color: var(--bg-color-form);
    color: var(--text-color-input);
}

.select-wrapper {
    position: relative;
    
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: #999;
    position: absolute;
    right: 16px;
    top: 65%;
    transform: translateY(-50%);
    pointer-events: none;
    
}

.select-wrapper label {
    margin: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin-bottom: 12px;
}

select option {
    background-color: var(--bg-color-form); 
    color: #FFFFFF; 
    font-size: 14px;
    padding: 12px 16px; 
}

/* Style for the "Specialist" group label */
.option-group-label {
    color: #999999;
    font-weight: 500;
    accent-color: var(--btn-submit-bg);
    pointer-events: none; 
    
}

/* Custom styling for the separator line */
.option-separator {
    border-bottom: 1px solid var(--border-color); 
    height: 1px; 
    margin: 4px 0; 
}

/* Style the 'Others' optgroup label */
optgroup {
    background-color: var(--bg-color-form); 
    color: #999999; 
    font-weight: 500;
    margin-top: 10px; 
}

/* Standard options within the optgroup */
optgroup option {
    color: #FFFFFF; 
}

.option-group-label {
    color: #999999; /* Gray color for the group heading */
    font-weight: 600;
}

/* Checkbox specific styles */
.checkbox-section {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.checkbox-section input[type="checkbox"] {
    width: 10px; 
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    margin-right: 10px;
    accent-color: var(--btn-submit-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 7px;
}

.checkbox-section label {
    margin: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
}

/* Button styles */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    border-radius: var(--border-radius-field);
    cursor: pointer;
    height: 40px;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

.submit-btn {
    background-color: var(--btn-submit-bg);
    border: none;
    color: #FFFFFF;
}

/*
 * Mobile Styles
 */
@media (max-width: 768px) {
    .main-header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%; 
        justify-content: space-between;
        gap: 10px;
    }
    
    .main-container {
        padding: 6px 12px;
    }
    
    .form-container {
        padding: 24px;
    }

    .form-heading {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .input-row {
        flex-direction: column;
        gap: 24px;
    }

    .form-section {
        margin-bottom: 24px;
    }

    .form-actions {
        justify-content: center;
        gap: 16px;
        margin-top: 32px;
    }
    
    .btn {
        width: 100%;
    }
}