/* Mandala-Style Modern Registration Form - Complete Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mandala Background Decorations - Final Design */
.mandala-body {
    background: #0B1C38 !important;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 50%) !important;
}

/* Mandala Corner Decorations */
.mandala-corner {
    position: fixed;
    width: 400px;
    height: 400px;
    background-image: repeating-radial-gradient(
        rgba(255, 255, 255, 0.03) 0, 
        rgba(255, 255, 255, 0.03) 2px, 
        transparent 4px, 
        transparent 10px
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.top-left {
    top: -150px;
    left: -150px;
}

.bottom-right {
    bottom: -150px;
    right: -150px;
}

.mandala-decoration {
    position: fixed;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.mandala-left {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    animation: rotateClockwise 60s linear infinite;
}

.mandala-right {
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    animation: rotateCounterClockwise 50s linear infinite;
}

.mandala-bottom-left {
    bottom: -120px;
    left: -120px;
    width: 450px;
    height: 450px;
    animation: rotateClockwise 70s linear infinite;
}

.mandala-bottom-right {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    animation: rotateCounterClockwise 55s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Floating particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(196, 160, 83, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Mobile responsive mandala */
@media (max-width: 768px) {
    .mandala-left, .mandala-right, 
    .mandala-bottom-left, .mandala-bottom-right {
        width: 250px;
        height: 250px;
    }
}

/* Registration Footer with Trust Details - Compact Version */
.registration-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 20px 20px;
    padding: 1rem 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.trust-details-footer {
    max-width: 100%;
}

.footer-info-item-compact {
    padding: 0.4rem 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-info-item-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(196, 160, 83, 0.1);
}

.footer-info-item-compact i {
    font-size: 0.9rem;
    vertical-align: middle;
}

.footer-info-item-compact strong {
    color: #2c3e50;
    font-size: 0.85rem;
}

.footer-info-item-compact .text-muted {
    font-size: 0.8rem;
    line-height: 1.3;
}

.footer-info-item-compact a {
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-info-item-compact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .registration-footer {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-info-item-compact {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .footer-info-item-compact i {
        font-size: 0.8rem;
    }
    
    .footer-info-item-compact strong {
        font-size: 0.75rem;
    }
    
    .footer-info-item-compact .text-muted,
    .footer-info-item-compact a {
        font-size: 0.7rem;
    }
}

/* Essential Bootstrap-like utilities for registration form */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-md-row { flex-direction: row !important; }
.gap-2 { gap: 0.5rem !important; }
.justify-content-center { justify-content: center !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.d-block { display: block !important; }
.btn-close {
    padding: 0.25rem 0.25rem;
    margin: -0.25rem -0.25rem -0.25rem auto;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}
.btn-close:hover { opacity: 0.75; }
.btn-close::before {
    content: "×";
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
}
.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}
.fade { transition: opacity 0.15s linear; }
.show { opacity: 1; }

/* Card styles for navigation buttons */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.custom-card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    background: #fff;
    margin-bottom: 1.5rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0B1C38;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Animated Background Elements - Logdy Style */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="70" cy="30" r="1.2" fill="rgba(255,255,255,0.07)"/><circle cx="10" cy="70" r="0.8" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="10" r="0.6" fill="rgba(255,255,255,0.04)"/></svg>');
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-10px) translateY(-5px) scale(1.05);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(5px) translateY(-10px) scale(0.95);
        opacity: 0.7;
    }
    75% { 
        transform: translateX(-5px) translateY(5px) scale(1.02);
        opacity: 0.85;
    }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) translateX(5px);
        opacity: 0.7;
    }
    100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: shapeFloat 25s infinite linear;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(120, 119, 198, 0.2);
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    background: rgba(255, 119, 198, 0.15);
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    background: rgba(120, 219, 255, 0.1);
}

.floating-shape:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
    background: rgba(255, 255, 255, 0.08);
}

.floating-shape:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 10%;
    animation-delay: -20s;
    background: rgba(120, 119, 198, 0.12);
}

@keyframes shapeFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.3;
    }
}

.registration-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.registration-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: visible;
    border: none;
    animation: slideUp 0.8s ease-out;
    position: relative;
}

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

.registration-header {
    background: indianred;
    color: white;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

/* Login Button Styles */
.header-login-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-login i {
    font-size: 1rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.header-text {
    margin-top: 20px;
    text-align: center;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.logo-container {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.logo-container img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.header-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-text p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    margin: 0;
}

.step-indicator {
    display: flex;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c4a053 0%, #d4af37 100%);
    opacity: 0.1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 25px;
    position: relative;
    transition: all 0.3s ease;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step:last-child::after {
    display: none;
}

.step:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.step.active .step-number {
    background: linear-gradient(135deg, #c4a053 0%, #d4af37 100%);
    color: white;
    border-color: #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    animation: stepPulse 2s ease-in-out infinite;
    transform: scale(1.1);
}

@keyframes stepPulse {
    0%, 100% { 
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
    }
}

.step.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 0.8rem;
    font-weight: 900;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.step.active .step-label {
    color: #c4a053;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(196, 160, 83, 0.2);
    font-size: 11px;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
    font-size: 11px;
}

.step:hover .step-label {
    color: #495057;
    transform: translateY(-1px);
}

.form-container {
    padding: 1.5rem;
    background: #fff;
}

/* Progress Bar - Final Design */
.progress-bar-final {
    margin-bottom: 1.5rem;
}

.progress-header-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label-final {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.progress-label-final i {
    color: #9ca3af;
    margin-right: 0.5rem;
    font-size: 14px;
}

.progress-percentage-final {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.progress-track-final {
    width: 100%;
    background: #f3f4f6;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.progress-fill-final {
    background: linear-gradient(90deg, #C59D5F 0%, #EACC86 50%, #C59D5F 100%);
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Section Header - Final Design */
.section-header-final {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #C59D5F;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-icon-final {
    background: rgba(197, 157, 95, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.section-icon-final i {
    color: #C59D5F;
    font-size: 20px;
}

.section-content-final h2 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.section-content-final p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-md-4, .col-md-6, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (max-width: 767.98px) {
    .col-md-4, .col-md-6 {
        width: 100%;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: #dc3545;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #c4a053;
    box-shadow: 0 0 0 0.2rem rgba(196, 160, 83, 0.25);
    background: #fff;
    outline: 0;
}

.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.89-1.89-1.89-1.89-.94-.94L2.3 1.89l.94.94L5.13 4.72l-1.89 1.89-.94.94z'/%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);
}

.form-control.is-invalid {
    border-color: #dc3545;
    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='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%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);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: 0;
}

.input-group.has-validation .form-control {
    border-radius: 0;
}

.input-group.has-validation .form-control:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, #c4a053 0%, #d4af37 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(196, 160, 83, 0.3);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(196, 160, 83, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 35px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-2px);
}

.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #198754;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #dc3545;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border-left: 4px solid #ffc107;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(10px);
}

.file-upload-area:hover {
    border-color: #c4a053;
    background: rgba(196, 160, 83, 0.05);
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: #c4a053;
    background: rgba(196, 160, 83, 0.1);
}

.file-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Form Check Styles */
.form-check {
    margin-bottom: 20px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #c4a053;
    border-color: #c4a053;
}

.form-check-label {
    font-weight: 500;
    color: #333;
    margin-left: 8px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .registration-container {
        max-width: 700px;
    }
    
    .success-card {
        max-width: 700px;
    }
}

/* Mobile-specific scrolling fixes */
@media (max-width: 768px) {
    html {
        height: 100%;
        height: -webkit-fill-available;
    }
    
    body {
        height: 100%;
        height: -webkit-fill-available;
    }
    
    .registration-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
    }
    
    .registration-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .form-container {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet and Mobile Landscape - Consolidated */
@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        display: block;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .registration-container {
        max-width: 100%;
        margin: 0;
        width: 100%;
        min-height: auto;
    }
    
    .registration-card {
        border-radius: 20px;
        min-height: auto;
        max-height: none;
        margin: 0;
        height: auto;
        overflow: visible;
    }
    
    .registration-header {
        padding: 25px 20px 30px 20px;
    }
    
    .header-login-btn {
        top: 15px;
        right: 20px;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
        margin-top: 15px;
    }
    
    .header-text h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .header-text p {
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 30px 20px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .step-indicator {
        padding: 20px 15px;
    }
    
    .step {
        margin: 0 2px;
    }
    
    .step::after {
        width: 20px;
        left: 30px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 10px;
        max-width: 60px;
    }
    
    .btn-primary, .btn-outline-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .input-group-text {
        padding: 12px 15px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .registration-container {
        max-width: 100%;
    }
    
    .success-card {
        max-width: 100%;
    }
    
    .registration-card {
        border-radius: 20px;
        min-height: 500px;
        max-height: 700px;
    }
    
    .registration-header {
        padding: 25px 20px 30px 20px;
    }
    
    .header-login-btn {
        top: 15px;
        right: 20px;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-text {
        text-align: center;
        margin-top: 15px;
    }
    
    .header-text h2 {
        font-size: 1.6rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .registration-header h2 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .step-indicator {
        padding: 20px 15px;
    }
    
    .step {
        margin: 0 4px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .btn-primary, .btn-outline-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait and Small Screens */
@media (max-width: 576px) {
    body {
        padding: 5px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        display: block;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .step-label {
        display: none;
    }
    
    .step {
        margin: 0 2px;
    }
    
    .step::after {
        width: 20px;
        left: 30px;
    }
    
    .form-container {
        padding: 20px 15px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .registration-header {
        padding: 20px 15px;
    }
    
    .header-login-btn {
        top: 10px;
        right: 15px;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .btn-login i {
        font-size: 0.8rem;
    }
    
    .header-text h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .header-text p {
        font-size: 0.85rem;
    }
    
    .step-indicator {
        padding: 15px 10px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 12px;
        border-radius: 8px;
    }
    
    .input-group-text {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-outline-secondary {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .file-upload-area {
        padding: 15px;
        min-height: 100px;
    }
    
    .file-info {
        font-size: 0.75rem;
    }
    
    /* Touch-friendly improvements */
    .form-check-input {
        width: 22px;
        height: 22px;
        margin-top: 0.3rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        margin-left: 10px;
    }
    
    /* Better spacing for mobile */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-12, .col-md-6, .col-md-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Extra small devices (portrait phones, less than 400px) */
@media (max-width: 400px) {
    body {
        padding: 2px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        display: block;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .registration-header {
        padding: 15px 10px;
    }
    
    .form-container {
        padding: 15px 10px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .header-text h2 {
        font-size: 1.2rem;
    }
    
    .header-text p {
        font-size: 0.8rem;
    }
    
    .step-indicator {
        padding: 10px 5px;
    }
    
    .step-number {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .form-control {
        padding: 12px 10px;
    }
    
    .input-group-text {
        padding: 12px 10px;
    }
    
    .btn-primary, .btn-outline-secondary {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Success Page Specific Styles */
.success-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffb366 0%, #ff8c42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.success-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.success-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-header p {
    margin: 15px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.success-content {
    padding: 40px 30px;
}

.member-info {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #c4a053;
    font-weight: 500;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: #0c5460;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.next-steps {
    background: rgba(13, 202, 240, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.next-steps h4 {
    color: #055160;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c4a053 0%, #d4af37 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.step-content h6 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-info {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.contact-info h6 {
    color: #664d03;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #664d03;
}

.contact-item i {
    margin-right: 10px;
    width: 20px;
}
