* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable browser's default validation messages */
form input:invalid,
form select:invalid,
form textarea:invalid {
    box-shadow: none;
}

form input:invalid:focus,
form select:invalid:focus,
form textarea:invalid:focus {
    box-shadow: none;
    outline: none;
}

/* Hide browser's default validation tooltip */
form input:invalid::-webkit-validation-bubble,
form select:invalid::-webkit-validation-bubble,
form textarea:invalid::-webkit-validation-bubble {
    display: none;
}

/* jqBootstrapValidation styles (matching Admin-Themes) */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f64e60;
}

.form-group.error .help-block ul {
    padding: 0px;
    margin: 6px 0 0 0;
    color: #f64e60;
    list-style: none;
    font-size: 0.875rem;
}

.form-group.error .help-block ul li {
    list-style: none;
}

.form-group.validate input,
.form-group.validate select,
.form-group.validate textarea {
    border-color: #1bc5bd;
}

.form-group.issue .help-block ul {
    padding: 0px;
    margin: 6px 0 0 0;
    color: #ffa800;
    list-style: none;
    font-size: 0.875rem;
}

.form-group.issue .help-block ul li {
    list-style: none;
}

.form-group.has-error .help-block {
    color: #f64e60;
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-group.has-error label {
    color: #f64e60;
}

.form-group.has-error .form-control {
    border-color: #f64e60;
    box-shadow: none;
}

.form-group.has-success .help-block {
    color: #1bc5bd;
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-group.has-success label {
    color: #1bc5bd;
}

.form-group.has-success .form-control {
    border-color: #1bc5bd;
    box-shadow: none;
}

/* Help block styling */
.help-block {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.help-block ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Form control transitions */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus:not(.is-invalid):not(.is-valid) {
    border-color: #05a68b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(5, 166, 139, 0.1) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Header */
.signup-header {
    background-color: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.signup-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-header-logo img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.signup-header-logo .logo-text {
    height: 21px;
    width: auto;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-selector:hover {
    background-color: #f5f5f5;
}

.language-selector .flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-selector .language-code {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.language-selector .caret-up {
    font-size: 10px;
    color: #000;
    margin-left: 2px;
}

.signup-container {
    display: flex;
    min-height: calc(100vh - 81px);
    padding: 0;
    gap: 0;
    max-width: 1250px;
    margin: 0 auto;
}

/* Left Panel - Features */
.signup-left-panel {
    flex: 1;
    background-color: #e3fff8;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    box-shadow: none;
    margin: 20px;
}

.left-panel-content {
    /* max-width: 500px; */
}

.left-panel-logo {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-panel-logo img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.left-panel-logo .logo-text {
    height: 21px;
    width: auto;
}

.left-panel-heading {
    font-family: "proxima-nova", Sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.5px;
    color: #004c3d;
    margin-bottom: 30px;
    margin-left: 10px;
}

.left-panel-heading .platform-logo {
    margin-top: -5px;
    width: 180px;
    height: auto;
    vertical-align: middle;
}

.left-panel-tagline {
    font-family: "proxima-nova", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 35px;
    line-height: 1.5;
    padding-left: 10px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon i {
    color: #05a68b;
    font-size: 16px;
    transition: color 0.3s;
}

.feature-text {
    font-family: "proxima-nova", Sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 25px;
    color: #54595f;
    transition: color 0.3s;
}

.app-download-buttons {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 0;
}

.app-download-col {
    width: 33.333%;
    padding: 0;
}

.app-download-col:first-child {
    margin-right: -5px;
}

.app-download-col:last-child {
    margin-left: -5px;
}

.app-download-btn {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
    text-align: left;
}

.app-download-btn:hover {
    opacity: 0.8;
}

.app-download-btn img {
    width: 85%;
    height: 86px;
    object-fit: contain;
}

/* Right Panel - Sign Up Form */
.signup-right-panel {
    flex: 1;
    background-color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    margin-top: -25px;
}

.right-panel-header {
    margin-bottom: 30px;
}

.trial-offer-text {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnContainer {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.signupBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dadce0;
    background-color: #fff;
    color: #3c4043;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
}

.signupBtn:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.2);
    border-color: #dadce0;
    background-color: #f8f9fa;
}

.signupBtn:active {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
    background-color: #f1f3f4;
}

.google-signup-btn {
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.google-signup-btn:hover {
    border-color: #dadce0;
    color: #202124;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.2);
}

.google-signup-btn:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

.google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-signup-btn svg {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    display: block;
}

.btnText {
    font-size: 15px;
    font-weight: 500;
    color: #3c4043;
    letter-spacing: 0.1px;
}

.google-signup-btn:hover .btnText {
    color: #202124;
}

.btnContainer {
    width: 100%;
    margin-bottom: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px auto;
    width: 100%;
    justify-content: space-between;
    cursor: auto;
}

.divider .line {
    width: 15%;
    height: 0px;
    border: 1px solid #bcbcbc;
}

.divider .orLine {
    padding: 0 15px;
    white-space: pre-wrap;
    color: #bcbcbc;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
}

.signup-form {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    grid-gap: 16px;
}

.form-row {
    display: flex;
    gap: 0;
    height: 40px;
}

.form-row .form-group {
    flex: 1;
    height: 40px;
    margin-bottom: 0;
}

.form-row .form-group:first-child {
    margin-right: 8px;
}

.form-row .form-group:last-child {
    margin-left: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: none;
}

.form-group input {
    width: 100%;
    padding: 14px;
    padding-left: 14px;
    padding-right: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #F4F6FC;
    color: #212121;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 40px;
}

.form-group input::placeholder {
    color: #9e9e9e;
}

.form-group input:focus {
    outline: none;
    border-color: #05a68b;
    box-shadow: 0 0 0 0.25rem rgba(5, 166, 139, 0.25);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.next-step-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #05a68b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-step-btn:hover {
    background-color: #05a68b;
    opacity: 0.9;
}

.login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.login-link a {
    color: #222;
    text-decoration: underline !important;
    font-weight: 600;
}

.login-link a:hover {
    color: #222;
}

/* Trust Section */
.trust-section {
    background-color: #fff;
    padding: 60px 50px;
    text-align: center;
}

.trust-heading {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.trust-logo-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 80px;
    transition: all 0.3s;
}

.trust-logo-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.trust-logo-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

/* ====================================================================
   Step 2 Form Styles (After Google Sign-in)
   ==================================================================== */

.step2-form-container {
    margin-top: 10px;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step2-form {
    margin-top: 0;
}

.step2-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    height: auto !important;
}

.step2-form .form-row .form-group {
    flex: none !important;
    height: auto !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
}

.step2-form .form-group {
    margin-bottom: 0;
}

.step2-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.step2-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #F4F6FC;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

/* Exception for phone input group - let flex handle width */
.step2-form .phone-input-group .form-control {
    width: auto !important;
}

.step2-form .form-control:focus {
    outline: none;
    border-color: #05a68b;
    box-shadow: 0 0 0 0.25rem rgba(5, 166, 139, 0.25);
}

/* Step 2 form validation styles - Admin Themes Style */
.step2-form .was-validated .form-control:invalid,
.step2-form .form-control.is-invalid {
    border-color: #ff3f3f;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff3f3f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff3f3f' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.step2-form .was-validated .form-control:invalid:focus,
.step2-form .form-control.is-invalid:focus {
    border-color: #ff3f3f;
    box-shadow: 0 0 0 0.25rem rgba(255, 63, 63, 0.25);
}

.step2-form .was-validated .form-control:valid,
.step2-form .form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.98-.98-.98-.98-.98.98.98.98zm5.4-5.4.98-.98-.98-.98-.98.98.98.98z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Step 2 OTP Input Verified State - Better Design */
.step2-form .otp-input.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    color: #065f46;
    padding-right: 45px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' fill='%2310b981'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.step2-form .otp-input.is-valid:disabled {
    background-color: #f0fdf4 !important;
    border-color: #10b981 !important;
    opacity: 1;
    cursor: default;
}

.step2-form .was-validated .form-control:valid:focus,
.step2-form .form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.step2-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.phone-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.step2-form .phone-input-group {
    width: 100% !important;
    display: flex !important;
    gap: 8px;
    box-sizing: border-box;
    align-items: stretch;
}

.step2-form .phone-input-group .country-code-select {
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.step2-form .phone-input-group #phoneNumber {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Override any conflicting form-control styles for phone number */
.step2-form .phone-input-group input.form-control {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Ensure form-control width doesn't override flex */
.step2-form .phone-input-group .form-control {
    width: auto !important;
}

/* Full width form groups (for OTP, checkbox, etc.) */
.step2-form > .form-group:not(.form-row) {
    margin-bottom: 16px;
}

.step2-form .form-group.checkbox-group {
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .step2-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .step2-form .phone-input-group .country-code-select {
        width: 100px !important;
        min-width: 90px;
    }
}

.otp-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.otp-input {
    flex: 1;
    text-align: center;
    font-size: 18px;
    letter-spacing: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* OTP Input Verified State - Better Design */
.otp-input.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    color: #065f46;
    padding-right: 45px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' fill='%2310b981'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.otp-input.is-valid:disabled {
    background-color: #f0fdf4 !important;
    border-color: #10b981 !important;
    opacity: 1;
    cursor: default;
}

.btn-resend-otp {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-resend-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-resend-otp:not(:disabled):hover {
    background: #e9ecef;
}

.help-block {
    margin-top: 5px;
    font-size: 12px;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.checkbox-group {
    margin: 8px 0 16px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-create-account {
    width: 100%;
    padding: 12px;
    background: #20c997;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.btn-create-account:hover {
    background: #1aa179;
}

.btn-create-account:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.is-valid {
    border-color: #28a745;
}

.is-invalid {
    border-color: #dc3545;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-header {
        padding: 15px 20px;
    }

    .signup-container {
        flex-direction: column;
        min-height: calc(100vh - 71px);
        padding: 20px;
        gap: 20px;
    }

    .signup-left-panel,
    .signup-right-panel {
        padding: 40px 30px;
        border-radius: 12px;
    }

    .left-panel-heading {
        font-size: 28px;
    }

    .platform-text {
        font-size: 18px;
    }

    .platform-icon {
        height: 24px;
        width: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .otp-input-wrapper {
        flex-direction: column;
    }
}


