* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

:root {
    --main-bg: #FFFFFF;
    --orange-color: #E15F09;
    --orange-light: #FF9500;
    --white-color: #000000;
    --grey-transparent: #666666;
    --grey-color: #333333;
    --black-color: #000000;
    --btn-bg: #C3C3C3;
    --blue-color: #718EBF;
    --grey-not-allowed: #ccc;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    display: none;
    /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure overlay is on top of other content */
}

label.required::before {
    content: "* ";
    color: red;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    /* Lighter border */
    border-top: 4px solid #ffffff;
    /* White top border */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: 25%;
    margin-left: 50%;
    animation: spin 1s linear infinite;
    /* Rotate animation */
}

.signup-container {
    display: flex;
    background: white;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    width: 36.125rem;
    flex-direction: column;
    gap: 0.25rem;
}

.form-title {
    color: #000;
    font-family: Arial;
    font-size: 2.8125rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    margin-bottom: 1.81rem;
}

.form-subtitle {
    color: #333;
    text-align: center;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: normal;
}

.form-group input,
.form-group select {
    margin-top: 0.69rem;
    width: 100%;
    padding: 15px;
    border: 1px solid #666;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #333;
}

.form-group input::placeholder,
.form-group select {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9500;
    background: white;
}

.password-group {
    position: relative;
}

.label-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-toggle-wrapper label {
    margin-bottom: 0;
}

.password-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.password-toggle:hover {
    color: #333;
}

.eye-icon {
    width: 16px;
    height: 16px;
}

.password-hint {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: normal;
}


/* .form-group input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
} */

.form-group input.error {
    border-color: #dc3545;
}

.form-group input.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.strength-meter {
    width: 100%;
    height: 4px;
    background-color: #e1e1e1;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.match-indicator {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.match-success {
    color: #4caf50;
}

.match-error {
    color: #f44336;
}

.match-indicator.match {
    color: #28a745;
}

.match-indicator.no-match {
    color: #dc3545;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

.country-group {
    position: relative;
}

.terms-text {
    padding: 0.5rem 0.5rem 0.5rem 0rem;
    color: #333;
    font-size: 0.90rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.terms-text a {
    color: #000000;
    font-size: 0.90rem;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.terms-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #e68400;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.submit-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-link {
    display: flex;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    justify-content: center;
    margin-top: 1rem;
}

.login-link a {
    color: #111;
    font-size: 1rem;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Warning modals */
.warning-modal,
.place-order-warning-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.warning-modal-content {
    background: white;
    padding: 1.25rem;
    border-radius: 0.625rem;
    text-align: center;
    width: min(90%, 31.25rem);
    max-height: 90vh;
    overflow-y: auto;
}

.place-order-warning-modal-content {
    background: white;
    padding: 0.5rem 2rem;
    border-radius: 0.625rem;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.warning-modal-content h2 {
    align-self: center;
    margin-bottom: 1rem;
}

.place-order-warning-modal-message {
    margin: 2rem 0;
}

.button-array {
    align-self: center;
}

.warning-button {
    background: var(--orange-light);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    width: 100%;
    max-width: 200px;
}


/* Responsive design */
@media (max-width: 768px) {
    .signup-container {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 28px;
    }

    body {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }
}