:root {
    --primary-color: #24184a;
    --secondary-color: #E37302;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #E37302;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

/* Registration Section */
.reg-section {
    background-color: var(--gray-100);
    padding: 2rem 1rem;
    background: url(../customer/images/login-bg.png) no-repeat center / cover;
}

.reg-container {
    max-width: 58rem;
    margin: 0 auto;
    margin-top: 7rem;
    margin-bottom: 7rem;
}

.reg-wrapper {
   
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.reg-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Elements */
.reg-form-group {
    position: relative;
    margin-bottom: 1.5rem;
    min-height: 85px;
}

.reg-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.reg-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.reg-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 40, 189, 0.1);
}

/* Phone Input Group */
.reg-phone-group {
    display: flex;
    gap: 0.5rem;
}

.reg-phone-code {
    width: 4rem;
    font-size: 1rem;
    padding: 0.625rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
}

.reg-phone-input {
    flex: 1;
    font-size: 1rem;
    padding: 0.625rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
}

/* Password Fields */
.reg-password-wrapper {
    position: relative;
}

.reg-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0.25rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-password-toggle:hover {
    color: var(--secondary-color);
}

.reg-password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.reg-password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.reg-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.reg-strength-meter[data-strength="weak"] {
    background-color: var(--error-color);
}

.reg-strength-meter[data-strength="medium"] {
    background-color: var(--warning-color);
}

.reg-strength-meter[data-strength="strong"] {
    background-color: var(--success-color);
}

.reg-password-match-icon {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    transition: all 0.3s ease;
}

/* Select Fields */
.reg-select-wrapper {
    position: relative;
}

.reg-select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    appearance: none;
    background-color: white;
}

.reg-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Location Grid */
.reg-location-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 640px) {
    .reg-location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* File Input */
.reg-file-wrapper {
    position: relative;
}

.reg-file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
}

.reg-file-input::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.15s ease-in-out;
}

.reg-file-input::file-selector-button:hover {
    background-color: #231F99;
}

/* Terms Checkbox */
.reg-terms-wrapper {
    margin: 1.5rem 0;
}

.reg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.reg-checkbox {
    width: 1rem;
    height: 1rem;
}

.reg-checkbox-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.reg-brand {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Submit Section */
.reg-submit-wrapper {
    text-align: center;
}

.reg-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.reg-submit-btn:hover {
    background-color: #231F99;
}

.reg-login-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.reg-login-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.reg-login-link:hover {
    color: #B85B02;
}

/* Form Grid */
.reg-form-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 640px) {
    .reg-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional hover states */
.reg-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 40, 189, 0.1);
}

.reg-checkbox:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.reg-error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    display: none;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
    transition: all 0.3s ease;
    height: 20px;
}

/* Adjust spacing for form groups without error messages */
.reg-form-group:not(:has(.reg-error-message)) {
    min-height: 65px;
}

/* Special handling for password fields */
.reg-form-group:has(.reg-password-wrapper) {
    min-height: 95px;
}

/* Optional: Add visual feedback for valid inputs */
.reg-input:valid:not(:placeholder-shown),
.reg-phone-input:valid:not(:placeholder-shown),
.reg-phone-code:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

.reg-input[type="password"] {
    transition: border-color 0.3s ease;
}