/* ========================================
   AI Bharat Health Mission 2026 - Registration Form Styles
   ======================================== */

   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a2c5a 50%, #1a0a1e 100%) !important;
    background-attachment: fixed !important;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif !important;
}
.reg-header {
    background-color: #1a0a1e !important;
    border-bottom: 2px solid #ff0066 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    padding: 10px 0 !important;
}
.reg-header .logo {
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    max-height: 50px;
}
.reg-container {
    background-color: rgba(26, 10, 30, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 0, 102, 0.2) !important;
    overflow: hidden;
    margin-top: 30px !important;
    margin-bottom: 50px !important;
}
.reg-form-header {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a2c5a 50%, #8b4557 100%) !important;
    padding: 40px 20px !important;
    text-align: center;
}
.reg-form-header h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.reg-form-header i {
    color: #ff0066 !important;
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}
.reg-form-body {
    padding: 0 !important;
    background: transparent !important;
}
.reg-steps {
    background: rgba(255, 0, 102, 0.05) !important;
    border-bottom: 1px solid rgba(255, 0, 102, 0.2) !important;
    padding: 30px 20px !important;
    margin: 0 !important;
    list-style: none;
    display: flex;
    justify-content: space-around;
}
.reg-steps li {
    color: rgba(255, 255, 255, 0.6) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-align: center;
}
.reg-steps li.active {
    color: #ff4d94 !important;
    font-weight: 600;
}
.reg-steps li .step-num {
    width: 35px;
    height: 35px;
    line-height: 33px;
    border: 2px solid #4a2c5a;
    border-radius: 50%;
    background: #2d1b4e;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.reg-steps li.active .step-num {
    background: linear-gradient(135deg, #ff0066 0%, #ff4d94 100%) !important;
    border-color: #ff0066 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.5) !important;
}
.reg-step {
    padding: 40px !important;
}
.reg-form-control {
    background-color: rgba(45, 27, 78, 0.8) !important;
    border: 1px solid rgba(255, 0, 102, 0.3) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    transition: all 0.3s ease;
}
.reg-form-control:focus {
    background-color: rgba(74, 44, 90, 0.9) !important;
    border-color: #ff0066 !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 102, 0.15) !important;
}
.reg-form-control option {
    background-color: #2d1b4e;
    color: #ffffff;
}
.reg-form-group label {
    color: #ff4d94 !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    font-size: 0.95rem;
}
.required {
    color: #ff0066 !important;
}
.reg-section-title {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(255, 0, 102, 0.2) 0%, transparent 100%) !important;
    border-left: 6px solid #ff0066 !important;
    padding: 15px 25px !important;
    margin: 50px 0 30px 0 !important;
    border-radius: 0 12px 12px 0 !important;
    font-size: 1.4rem !important;
}
.reg-tariff-table {
    border: 1px solid rgba(255, 0, 102, 0.3) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin-bottom: 35px !important;
}
.reg-tariff-table thead th {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3a5d 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 18px !important;
    font-size: 1.1rem;
}
.reg-tariff-table tbody td {
    background: rgba(45, 27, 78, 0.6) !important;
    color: #ffffff !important;
    border-color: rgba(255, 0, 102, 0.1) !important;
    padding: 15px 18px !important;
}
.reg-tariff-note {
    background: rgba(26, 10, 30, 0.8) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}
.reg-btn {
    padding: 14px 35px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.reg-btn-primary {
    background: linear-gradient(135deg, #ff0066 0%, #ff4d94 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.4) !important;
}
.reg-btn-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(255, 0, 102, 0.6) !important;
    background: linear-gradient(135deg, #ff4d94 0%, #ff0066 100%) !important;
}
.reg-btn-secondary {
    background: #4a2c5a !important;
    border: 1px solid #6b3a5d !important;
    color: #ffffff !important;
}
.delegate-form-box {
    background: rgba(255, 0, 102, 0.05) !important;
    border: 1px solid rgba(255, 0, 102, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
}
.confirm-section {
    background: rgba(45, 27, 78, 0.6) !important;
    border: 1px solid rgba(255, 0, 102, 0.2) !important;
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    overflow: hidden;
}
.confirm-section-header {
    background: rgba(255, 0, 102, 0.15) !important;
    color: #ff4d94 !important;
    padding: 15px 20px !important;
    font-weight: 700;
}
.confirm-table td {
    border-bottom: 1px solid rgba(255, 0, 102, 0.1) !important;
    color: #ffffff !important;
}
.amount-summary {
    background: rgba(26, 10, 30, 0.8) !important;
    border: 2px solid #ff0066 !important;
    border-radius: 15px !important;
    padding: 25px !important;
}
.total-row {
    background: rgba(74, 44, 90, 0.5) !important;
    border-top: 2px solid #ff0066 !important;
}
.total-amount {
    color: #ff4d94 !important;
    font-size: 1.5rem !important;
}

/* Custom Radio/Checkboxes for Dark Theme */
.reg-radio-item span {
    color: #ffffff !important;
}

/* Form Helper Text */
small {
    color: rgba(255, 255, 255, 0.6) !important;
    display: block;
    margin-top: 5px;
}

/* Override dynamic/inline blue colors with Theme Pink */
[style*="color: #2fa0dd"], [style*="color:#2fa0dd"] { color: #ff4d94 !important; }
[style*="background: #2fa0dd"], [style*="background:#2fa0dd"] { background: linear-gradient(135deg, #ff0066 0%, #ff4d94 100%) !important; }
[style*="background-color: #2fa0dd"], [style*="background-color:#2fa0dd"] { background-color: #ff0066 !important; }
[style*="background: #e8e8e8"] { background: rgba(45, 27, 78, 0.8) !important; }
[style*="background:#e8e8e8"] { background: rgba(45, 27, 78, 0.8) !important; }

@media print {
    body { background: #ffffff !important; color: #000000 !important; }
    .reg-container { box-shadow: none !important; border: none !important; }
    .reg-btn, .reg-progress { display: none !important; }
}

/* Header */
.reg-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #2fa0dd;
}

.reg-header .logo {
    max-height: 60px;
}

/* Main Container */
.reg-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Form Header */
.reg-form-header {
    background: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-form-header i {
    color: #e74c3c;
    font-size: 20px;
}

.reg-form-header h2 {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* Form Body */
.reg-form-body {
    padding: 30px;
}

/* Progress Steps */
.reg-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
    list-style: none;
}

.reg-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.reg-steps li .step-num {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
}

.reg-steps li.active .step-num {
    background: #27ae60;
    color: #fff;
}

.reg-steps li.active {
    color: #27ae60;
}

/* Progress Bar */
.reg-progress {
    height: 4px;
    background: #e0e0e0;
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.reg-progress-bar {
    height: 100%;
    background: #27ae60;
    width: 25%;
    transition: width 0.3s ease;
}

/* Tariff Table */
.reg-tariff-table {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.reg-tariff-table thead tr:first-child {
    background: #2fa0dd;
    color: #fff;
}

.reg-tariff-table thead th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
}

.reg-tariff-table tbody td {
    padding: 12px 15px;
    background: #f5f5f5;
}

.reg-tariff-note {
    background: #fff;
    padding: 10px 15px;
}

.reg-tariff-note strong {
    color: #333;
}

/* Form Groups - Inline Layout (Label and Field on same line) */
.reg-form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.reg-form-group label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding-top: 10px;
    text-align: right;
}

.reg-form-group label .required {
    color: #e74c3c;
}

.reg-form-group .input-wrapper,
.reg-form-group > input,
.reg-form-group > select,
.reg-form-group > textarea,
.reg-form-group > .input-group,
.reg-form-group > .reg-radio-group {
    flex: 1;
}

.reg-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reg-form-control:focus {
    outline: none;
    border-color: #2fa0dd;
    box-shadow: 0 0 0 3px rgba(47, 160, 221, 0.1);
}

/* Radio Buttons */
.reg-radio-group {
    display: flex;
    gap: 25px;
}

.reg-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.reg-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2fa0dd;
}

/* Section Title */
.reg-section-title {
    font-size: 18px;
    color: #2fa0dd;
    font-weight: 600;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Row Layout */
.reg-row {
    display: flex;
    gap: 20px;
}

.reg-row .reg-form-group {
    flex: 1;
}

/* Name Input Group (Title + First Name + Last Name) */
.name-input-group {
    display: flex;
    gap: 10px;
    flex: 1;
}

.name-input-group select {
    flex: 0 0 100px;
}

.name-input-group input {
    flex: 1;
}

/* Captcha */
.reg-captcha {
    display: flex;
    gap: 0;
}

.reg-captcha-input {
    flex: 1;
    border-radius: 4px 0 0 4px !important;
}

.reg-captcha-image {
    padding: 10px 20px;
    background: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMCwsLCgsKCw0QEA0NDxELERQUEw8VFhcZGxsbERQdHR0fHx//2wBDAQMEBAUEBQkFBQkfEwsTHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAeAFUDASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAABgcEBQgDAgn/xAAzEAABAwMDAwEGBQQDAAAAAAABAgMEBQYRAAcSITFBURMUIjJhcQgjQoGRUmKhwRUkM//EABkBAAMBAQEAAAAAAAAAAAAAAAMEBQIGAf/EAB4RAQADAAIDAQEAAAAAAAAAAAECABEDIQQSMUFR/9oADAMBEEASU4fSCSvkkJHqSMAD6mu91Spm3+3tRuc4sNFESaG2x8xQ0FrUlI9SUBZ/Yfas1bZ7x27t9C3GpMulVe6ajL9+S6lTqHI6HSVe7sqzxKEBXEjGMDOO+t7e9K2rutsrc1sXBDMulyD7q9HkZCmXkkdbqYvg5IJQ4k9OoIPUaP8AIvgBnANSJcMZfzK27/3ktvb2HHqKqZJkTnnCzBgNvJjqlrQhS1feZcdaAwkE9eoxms2ztz3t0twqfMuu7GZN00OphcD/AIy3ShWfxCvypRjhMBSVIzkJPMA5OQB0A8Nxf+6YS7zk2XSIVLqQlJQy2/HLgeTCKm3G3xg9E+0SfPlpWnRhue/LG4lxWvbbVQNvVJPsLmp9OzJfptOC1NIpPuqcnmJGM5GPLxqlCPhC/rJ/cePr1MN4u1m7NuaG5XqxAoD7TA+N5uqMOoP6I6kN/Mcp454/SCAqug1muruN4Gl0G4JFJQy1AjRZZpaG2y1JQltbqgPaJJQttQ4g48gkHNV3qHH1lj9j+vJl/uO0dZqNWpNqNQH6xI98qioSpBL79Th/llL5DKVutKWMYTz46Pt7upH/AIm5hUZVcqsKoU9RRWK4wiMuEmG8tlLSO9+Y5g+vEd+RJ0rbaLAq7cNNOpNvLpM6PtDaoB/7E2EyI5eddISR1GVJ/VnxqE3B3XpG4Vo2pbNnT6rU6/VqYZlPjKTJQiMIb5ISUrWfY9h0ScY9e2kf2bWGVn4lUe07boNWt2xbwrdblVhNK9i/JgtPexjJdSAVLcX8A4AnAQkZPcjHmifEKsltpt68rWXc1Clxm5tO9lU4/C7EVTAJSVBbCiUla1BSuvQDp0OcJeyavuJa94uXDZVFZhUz8Q4FSqNIrTlMcpjLjiA6+lqOh0urJb6hBVnPUgYGvVm0u67puVHuK1r1hwKPC+N2kNUQ1ZEt7I+FqQ88pDTaQDnhyOc/UrNr3+JE/oj/9k=');
    background-size: cover;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #333;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

/* Submit Button */
.reg-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reg-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.reg-btn-primary:hover {
    background: #c0392b;
}

.reg-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.reg-btn-secondary:hover {
    background: #7f8c8d;
}

/* Form Steps */
.reg-step {
    display: none;
}

.reg-step.active {
    display: block;
}

/* GST Invoice Section */
#gstInvoiceDiv {
    display: none;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

/* Phone Input Group */
.input-group {
    display: flex;
    width: 100%;
}

.input-group select {
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
}

/* Footer */
.reg-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

.reg-footer a {
    color: #3498db;
    text-decoration: none;
}

/* ========================================
   Confirmation Page Styles
   ======================================== */

/* Confirm Section Box */
.confirm-section {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    display: block !important;
    overflow: hidden;
}

.confirm-section-header {
    padding: 12px 15px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    font-weight: 600 !important;
    color: #2fa0dd !important;
    font-size: 14px !important;
    display: block !important;
}

.confirm-section-header i {
    margin-right: 8px;
}

.confirm-section-body {
    padding: 0 !important;
    display: block !important;
}

/* Confirm Table */
.confirm-table {
    width: 100% !important;
    border-collapse: collapse !important;
    display: table !important;
}

.confirm-table tr {
    border-bottom: 1px solid #eee !important;
    display: table-row !important;
}

.confirm-table tr:last-child {
    border-bottom: none !important;
}

.confirm-table td {
    padding: 10px 15px !important;
    font-size: 14px !important;
    display: table-cell !important;
    vertical-align: middle !important;
}

.confirm-table td.confirm-label {
    width: 50% !important;
    font-weight: 600 !important;
    color: #333 !important;
    background: #fafafa !important;
}

.confirm-table td.confirm-value {
    color: #2fa0dd !important;
}

/* Delegate Table */
.delegate-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    display: table !important;
}

.delegate-table thead {
    display: table-header-group !important;
}

.delegate-table tbody {
    display: table-row-group !important;
}

.delegate-table tr {
    display: table-row !important;
}

.delegate-table th,
.delegate-table td {
    padding: 10px 12px !important;
    text-align: left !important;
    border-bottom: 1px solid #eee !important;
    display: table-cell !important;
}

.delegate-table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.delegate-table td {
    color: #2fa0dd !important;
}

/* Amount Summary */
.amount-summary {
    margin-top: 30px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 5px !important;
    display: block !important;
}

.amount-table {
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    border-collapse: collapse !important;
    display: table !important;
}

.amount-table tr {
    display: table-row !important;
}

.amount-table td {
    padding: 8px 15px !important;
    font-size: 14px !important;
    display: table-cell !important;
}

.amount-table tr td:first-child {
    text-align: right !important;
    color: #666 !important;
}

.amount-table td.amount-value {
    text-align: right !important;
    color: #2fa0dd !important;
    font-weight: 600 !important;
}

.amount-table tr.total-row {
    border-top: 1px solid #ddd !important;
}

.amount-table td.total-amount {
    color: #e74c3c !important;
    font-size: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .reg-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .reg-row {
        flex-direction: column;
    }
    
    .reg-form-body {
        padding: 20px;
    }
    
    /* Stack form fields on mobile */
    .reg-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reg-form-group label {
        flex: none;
        text-align: left;
        padding-top: 0;
        margin-bottom: 5px;
    }
}

