/* New Signup Patient CSS - Improved UI/UX */

/* Reset and base styles */
.new-signup-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px 0;
}

.new-signup-wrapper .back-to-login{
    color:#007bff;
    text-decoration: none;
}
.new-signup-wrapper .back-to-login:hover {
    text-decoration: underline;
}

.new-signup-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px 0 #DDDDDD;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.new-signup-header {
    background: #2c3e50;
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.new-signup-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
}

.new-signup-header .subtitle {
    margin: 10px 0 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 60px;
    width: auto;
}

/* Progress indicator */
.progress-container {
    background: #ecf0f1;
    padding: 20px 30px;
    border-bottom: 1px solid #e8eaed;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8eaed;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
    z-index: 2;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #7f8c8d;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.step.active {
    background: #3498db;
    color: white;
}

.step.completed {
    background: #27ae60;
    color: white;
}

/* Form content */
.form-content {
    padding: 40px 30px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 300;
}

/* Form fields */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #34495e;
    font-weight: 600;
    font-size: 14px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #27ae60;
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-select {
    flex: 0 0 140px;
    font-size: 14px;
}

.phone-number {
    flex: 1;
}

/* Select fields */
.form-row {
    display: flex;
    gap: 15px;
}

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

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.radio-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.radio-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.radio-item input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    display: none;
}

.radio-item label{
    margin-bottom: 0px;
}

/* Checkboxes */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

/* Buttons */
.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #7f8c8d;
}

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

/* OTP Section */
.otp-container {
    text-align: center;
    padding: 40px 20px;
}

.otp-container p strong{
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    display: block;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.otp-resend {
    margin-top: 20px;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.otp-resend:hover {
    text-decoration: underline;
}

.otp-resend.disabled {
    color: #666 !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
}
        
.otp-switch {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}
        
.otp-switch:hover {
    text-decoration: underline;
}
        
.required {
    color: red;
    font-weight: bold;
}

/* Messages and alerts */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Field validation messages */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.field-success {
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password strength indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #e74c3c;
}

.strength-fill.medium {
    width: 66%;
    background: #f39c12;
}

.strength-fill.strong {
    width: 100%;
    background: #27ae60;
}

.password-requirements {
    margin-top: 15px;
    font-size: 12px;
}

.password-requirements h6 {
    margin: 0 0 10px 0;
    color: #34495e;
    font-size: 13px;
}

.password-requirements p {
    margin: 5px 0;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.password-requirements p.valid {
    color: #27ae60;
}

.password-requirements p::before {
    content: '✗';
    margin-right: 8px;
    font-weight: bold;
}

.password-requirements p.valid::before {
    content: '✓';
}

/* Subscription section */
.subscription-plans {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.plan-card {
    border: 2px solid #e8eaed;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    border-color: #3498db;
    background: #f8f9fa;
}

.plan-price {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 16px;
    color: #7f8c8d;
}

.plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.plan-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .new-signup-container {
        margin: 10px;
        border-radius: 15px;
    }

    .form-content {
        padding: 30px 20px;
    }

    .new-signup-header {
        padding: 25px 20px;
    }

    .new-signup-header h1 {
        font-size: 24px;
    }

    .progress-container {
        padding: 15px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-item {
        min-width: unset;
    }

    .btn-container {
        flex-direction: column;
    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .new-signup-wrapper {
        padding: 10px 0;
    }

    .form-content {
        padding: 25px 15px;
    }

    .new-signup-header {
        padding: 20px 15px;
    }

    .progress-container {
        padding: 12px 15px;
    }

    .step {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Success animation */
.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #27ae60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 40px;
    font-weight: bold;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }

/* Coupon functionality styles */
.coupon_status { 
    font-weight: 700; 
    margin-left: 10px;
    font-size: 12px;
}

.coupon_status.valid { 
    color: #2ecc71; 
}

.coupon_status.invalid { 
    color: #e74c3c; 
}

.submit_payment_credit_card,
.submit_payment_coupon {
    transition: all 0.3s ease;
}

.payment-section {
    margin-top: 20px;
}