@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html,
body {
    /* height: 100% !important; */
    background-color: #F9FAFB;
}


.registration-container {
    margin: 40px auto 0px auto;
    padding: 10px 10px 0px 10px;

    /* max-width: 424px;  */
}

.registration-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

/* Password field eye toggle (template-style) */
.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #2C2C2C;
}

.password-toggle-btn:focus {
    outline: none;
    color: #2C2C2C;
}

.form-control.password-field {
    padding-right: 2.75rem;
}

.registration-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    background: #FFF;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Phone field with country-code prefix (inline, left column + right input) */
.phone-prefix-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.phone-prefix-row .phone-country-code {
    flex: 0 0 170px;
    /* compact column */
    max-width: 170px;
    padding: 12px 12px;
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    background: #FFF;
    font-size: 16px;
    box-sizing: border-box;
}

.phone-prefix-row .phone-number {
    flex: 1 1 auto;
    min-width: 0;
}

/* Searchable country code picker (no flags) */
.phone-country-code-picker {
    position: relative;
}

.phone-country-code-picker.is-enhanced .phone-country-code-select {
    display: none;
}

/* Make it look like ONE unified input (like the screenshot) */
.phone-prefix-row.phone-country-code-picker {
    gap: 0;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    /* Must be visible so the dropdown can overlay below (like the design reference) */
    overflow: visible;
    background: #FFF;
}

/* .phone-prefix-row.phone-country-code-picker:focus-within {
    border-color: #6D28D9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
} */
.phone-prefix-row.phone-country-code-picker .phone-number {
    border: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
}

.phone-prefix-row.phone-country-code-picker .phone-country-code {
    border: 0 !important;
    border-radius: 0 !important;
}

.phone-country-ui {
    flex: 0 0 150px;
    max-width: 150px;
    position: relative;
}

.phone-country-btn {
    width: 100%;
    height: 100%;
    padding: 12px 34px 12px 12px;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border: 0;
    border-right: 1px solid #E6E6E6;
    background: #FFF;
    font-size: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.phone-country-btn:focus {
    outline: none;
    box-shadow: none;
}

.phone-country-chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #4F4F4D;
    opacity: 0.75;
    flex-shrink: 0;
}

.phone-country-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 360px;
    max-width: 70vw;
    background: #FFF;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 10px;
    display: none;
}

/* Right-side rounding for the phone number input inside the unified control */
.phone-prefix-row.phone-country-code-picker .phone-number {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.phone-country-code-picker.open .phone-country-dropdown {
    display: block;
}

.phone-country-search {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #E6E6E6;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.phone-country-list {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style: none !important;
    padding-left: 0 !important;
}

.phone-country-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.phone-country-item::marker {
    content: "";
}

.phone-country-item:hover,
.phone-country-item[aria-selected="true"] {
    background: #F3F4F6;
}

.phone-country-item .cc-label {
    font-weight: 500;
    color: #111827;
}

.phone-country-item .cc-code {
    color: #6B7280;
    white-space: nowrap;
}

.registration-form .form-control:focus {
    border: 1px solid #D9D9D9;

}

.registration-form .form-control::placeholder {
    color: #B3B3B3;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 16px */
}

.form-control:focus {
    outline: none;
    border-color: #007bff00;
    box-shadow: none;
}

.form-group::after {
    content: '*';
    position: absolute;
    right: -13px;
    top: -3px;
    color: #DD0404;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    font-weight: 400;
}

.checkbox-group {
    margin-top: 38px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    margin-top: 0px;
    cursor: pointer;
    accent-color: #333;
    flex-shrink: 0;
}

.form-check label {
    margin: 0;
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

.terms-text {
    font-size: 13px;
    color: #666;
    margin: 0 !important;
    line-height: 1.6;
}

.terms-text a {
    color: #666;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #333;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.submit-btn {
    max-width: 456px;
    width: 100%;
    padding: 14px;
    border-radius: 24.5px;
    border: 1px solid #EECA46;
    background: #EECA46;
    color: #1E1E1E;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    margin-top: 26px;
    margin: auto;
    transition: background 0.3s ease;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    background: #e6b800;
}

.submit-btn:active {
    color: #1E1E1E !important;
    background-color: #e6b800 !important;
    border-color: #e6b800 !important;
    outline: 0;
    box-shadow: none !important
}
.submit-btn:focus-within {
    color: #1E1E1E !important;
    background-color: #e6b800 !important;
    border-color: #e6b800 !important;
    outline: 0;
    box-shadow: none !important
}

.login-link {
    color: #2C2C2C;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin-top: 72px;
    /* 16px */
}

.login-link.restet a {
    color: #757575;
    line-height: 140%;
    /* 22.4px */
    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;
}

.login-link a {
    color: #2C2C2C;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-decoration: underline;
}

.login-link a:hover {
    text-decoration: underline;
}

/* OTP timer: turn red when < 45 seconds remaining */
.text-danger-timer {
    color: #dc3545 !important;
    font-weight: bold;
}

/* OR divider and social buttons */
.or-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 53px 0;
    width: 100%;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #000;
    width: 100%;
}

.or-divider span {
    display: inline-block;
    color: #2C2C2C;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.social-row {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #2C2C2C;
    text-align: center;

    /* Body Strong */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    /* 22.4px */
    text-decoration: none;
    color: #222;
    font-weight: 700;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 100%
}

@media (max-width: 640px) {
    .social-row {
        flex-direction: column;
    }
}