/* Core Global Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #FAFAFA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar styling */
.top-nav {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
}

.nav-right {
    font-size: 14px;
    color: #4A4A4A;
}

.login-link {
    color: #E05236;
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
}

.btn-switch-lang {
    background: transparent;
    border: 1px solid #E05236;
    color: #E05236;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-switch-lang:hover {
    background-color: #E05236;
    color: #FFFFFF;
}

/* Main Form Wrapper */
.register-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.register-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo img {
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
}

/* Form Group Configurations */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    text-align: right;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
    background-color: #FFFFFF;
    transition: border-color 0.2s;
}

input::placeholder {
    color: #B5B5B5;
}

input:focus, select:focus {
    border-color: #E05236;
}

/* Mobile Input Field Layout */
.phone-input-group {
    display: flex;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
    direction: ltr; /* Ensures standard visual alignment for phone input segments */
}

.phone-input-group:focus-within {
    border-color: #E05236;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #FAFAFA;
    padding: 0 16px;
    border-right: 1px solid #E5E5E5;
}

.flag-icon {
    width: 20px;
    border-radius: 2px;
}

.code-text {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
}

/* Employee Count Radio Grid System */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #4A4A4A;
    direction: ltr;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #D5D5D5;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

/* Active Radio selection styling */
.radio-card:has(input[type="radio"]:checked) {
    border-color: #E05236;
    background-color: #FFF9F8;
}

.radio-card:has(input[type="radio"]:checked) .custom-radio {
    border-color: #E05236;
}

.radio-card:has(input[type="radio"]:checked) .custom-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #E05236;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dropdown Selector Custom wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0A0A0;
    pointer-events: none;
    font-size: 16px;
}

select {
    appearance: none; /* Disables standard engine indicators */
    padding-left: 40px; 
}

/* Submit Action Button styling */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #E05236; /* Sabbar Active Orange Color Tint */
    border: none;
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #C64127;
}

/* Legal Footer Footnotes */
.terms-text {
    font-size: 12px;
    color: #757575;
    line-height: 1.8;
    text-align: center;
}

.terms-text a {
    color: #E05236;
    text-decoration: none;
    font-weight: 600;
}

/* Floating Technical Help Desk Button Widget */
.support-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
}

.btn-support {
    background-color: #FF5A1F;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 90, 31, 0.3);
}

.support-icon {
    width: 26px;
    height: 26px;
    stroke: #FFFFFF;
}

/* Viewport Responsiveness Adjustments */
@media (max-width: 600px) {
    .top-nav {
        padding: 15px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .register-card {
        padding: 24px 16px;
        box-shadow: none;
        background: transparent;
    }
}
