/* Premium Redesign CSS */
:root {
    --primary-green: #00bf00;
    --bg-soft: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.personal-info-wrapper {
    background-color: var(--bg-soft);
    padding-bottom: 10px;
    /* Further reduced from 30px */
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: auto;
}

.redesign-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.redesign-header h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.btn-back-modern {
    background: #f1f5f9;
    /* Match page background better */
    border: 1px solid #cbd5e1;
    color: var(--text-dark) !important;
    padding: 10px 22px;
    /* Increased padding */
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-back-modern:hover {
    background: #f8fafc;
    border-color: var(--primary-green);
    color: var(--primary-green) !important;
    transform: translateX(-3px);
}

.header-subtitle {
    font-size: 1.05rem;
    color: var(--text-dark);
    /* Improved contrast */
    font-weight: 500;
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Ensure columns stretch to fill row height */
}

.equal-height-col {
    display: flex;
    flex-direction: column;
}

.redesign-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    /* Reduced from 40px */
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    flex: 1;
    /* Stretch to fill column height */
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    /* Reduced from 20px to bring footer closer */
}

.sidebar-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    flex: 1;
    /* Stretch to fill column height */
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    /* Reduced from 20px */
}

.form-group-custom {
    margin-bottom: 15px;
    /* Reduced spacing */
}

.form-group-custom label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    /* Increased from 0.95rem */
    color: var(--text-dark);
    text-align: left;
}

.form-group-custom .input-wrapper {
    width: 100%;
}

.form-control-modern {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 1.1rem !important;
    /* Increased from 1rem */
    padding: 10px 16px !important;
    transition: all 0.2s ease;
    width: 100% !important;
    box-shadow: none !important;
}

.form-control-modern:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 191, 0, 0.1) !important;
    outline: none;
}

.btn-create-account {
    background-color: var(--primary-green) !important;
    color: white !important;
    height: 52px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    /* Slightly increased from 1.1rem */
    width: 100%;
    border: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-create-account:hover {
    background-color: #00a000 !important;
    transform: translateY(-1px);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-dark);
    /* Improved contrast */
}

.benefit-icon {
    color: var(--primary-green);
    margin-right: 12px;
    font-weight: bold;
}

.rule-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    margin-top: 20px;
}

.rule-item {
    list-style: disc;
    padding-left: 20px;
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-dark);
    /* Improved contrast */
    font-weight: 500;
}

.captcha-wrap {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.captcha-container {
    flex: 1;
}

.button-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-modern {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    width: 100%;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .form-group-custom label {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .form-group-custom .input-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .captcha-wrap {
        flex-direction: column;
    }
}

/* Utility classes to replace inline styles */
.field-hint-text {
    font-size: 0.8rem;
    margin-top: 4px;
}

.email-exist-note {
    background: #fff3cd;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    color: #856404;
    font-size: 0.9rem;
}

.usage-note {
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.security-check-label {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.loader-img-btn {
    display: none;
    margin-top: 10px;
}

.security-store-note {
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.9rem;
}

.side-heading-main {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.side-heading-sub {
    font-weight: bold;
    margin-bottom: 5px;
}

.side-intro-text {
    font-weight: bold;
    margin-top: 15px;
}

.password-req-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.password-req-subtitle {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.password-req-footer {
    margin-top: 10px;
    font-size: 0.85rem;
}