/* KP Mithaas Sweet Shop Theme - Premium Registration Page */

/* Body Background - Deep Maroon matching PDF */
body {
    background: linear-gradient(135deg, #4a0e14 0%, #6b1520 25%, #5a1118 50%, #6b1520 75%, #4a0e14 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    background-repeat: no-repeat;
    font-family: 'Poppins', 'Gotham Medium', 'Segoe UI', sans-serif;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo Container */
.logos-container {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.bengalTech-Logo {
    height: 5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.Fundoo-Logo {
    height: 4.5rem;
    padding-right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0.5rem;
    padding: 0.3em 0.5rem;
}

.sheSummit-Logo {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Main Registration Container - Premium Look */
.Registration-body {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 245, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 
                0 10px 30px rgba(107, 21, 32, 0.5),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.Registration-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37 0%, #6b1520 50%, #d4af37 100%);
    background-size: 200% 100%;
    animation: borderShine 3s linear infinite;
}

@keyframes borderShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Header Styling */
.Registration-body h2 {
    color: #4a0e14;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(212, 175, 55, 0.4);
    font-family: 'Poppins', sans-serif;
}

.Registration-body header p.tagline {
    text-align: center;
    color: #d4af37;
    font-weight: 400;
    margin-top: -5px;
    font-style: normal;
    font-size: 1.8rem;
    font-family: 'Satisfy', 'Cookie', cursive;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Group */
.form-group {
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Form Labels - Premium Typography */
.form-group label {
    color: #2c1810;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.requiredField {
    color: #4a0e14;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.optionalField {
    color: #3d1f1f;
    font-family: 'Poppins', sans-serif;
}

/* Input Fields - Premium Glass Effect */
.form-control {
    background-color: #ffffff;
    color: #2c2c2c;
    border: 2.5px solid #d4af37;
    border-radius: 1.2rem;
    padding: 14px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(155, 107, 107, 0.1),
                inset 0 1px 2px rgba(212, 175, 55, 0.1);
}

.form-control:focus {
    border-color: #6b1520;
    box-shadow: 0 0 20px rgba(107, 21, 32, 0.25), 
                0 0 12px rgba(212, 175, 55, 0.4),
                0 8px 20px rgba(155, 107, 107, 0.2);
    outline: none;
    color: #2c2c2c;
    background-color: #fffef8;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a89080;
    font-style: normal;
    font-weight: 300;
}

/* Prevent autofill background */
input:-webkit-autofill {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #2c2c2c !important;
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.9) inset !important;
    -webkit-text-fill-color: #2c2c2c !important;
}

input:autofill {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #2c2c2c !important;
}

input:-internal-autofill-selected {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #2c2c2c !important;
}

/* Select2 Dropdown Styling */
.select2-selection {
    height: 2.8rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 2.5px solid #d4af37;
    box-shadow: 0 4px 12px rgba(155, 107, 107, 0.1),
                inset 0 1px 2px rgba(212, 175, 55, 0.1);
}

.select2-selection__rendered {
    height: 100% !important;
    line-height: 2.8rem !important;
    padding-left: 1rem !important;
    color: #2c2c2c !important;
    font-family: 'Poppins', sans-serif !important;
}

.select2-selection__placeholder {
    color: #a89080 !important;
    font-weight: 300 !important;
}

.select2-selection.select2-selection--single {
    height: 2.8rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 2.5px solid #d4af37;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select2-selection.select2-selection--single:focus,
.select2-container--open .select2-selection {
    border-color: #6b1520;
    box-shadow: 0 0 20px rgba(107, 21, 32, 0.25), 
                0 0 12px rgba(212, 175, 55, 0.4);
}

.select2-selection__arrow {
    display: none !important;
}

.select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2c2c2c !important;
    font-family: 'Poppins', sans-serif !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(107, 21, 32, 0.85);
    color: #d4af37;
}

#Nationality {
    width: 100% !important;
}

.iti {
    width: 100%;
}

/* Buttons - Premium with Maroon & Gold */
.Red-btn,
button[type="submit"],
button[type="button"] {
    background: linear-gradient(135deg, #6b1520 0%, #8b2332 50%, #6b1520 100%);
    background-size: 200% 100%;
    color: #d4af37;
    font-weight: 700;
    border: 3px solid #d4af37;
    padding: 14px 28px;
    border-radius: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(107, 21, 32, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.Red-btn::before,
button[type="submit"]::before,
button[type="button"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.Red-btn:hover::before,
button[type="submit"]:hover::before,
button[type="button"]:hover::before {
    width: 300px;
    height: 300px;
}

.Red-btn:hover,
button[type="submit"]:hover,
button[type="button"]:hover {
    background-position: 100% 0;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(107, 21, 32, 0.5),
                0 6px 20px rgba(212, 175, 55, 0.3);
    color: #ffd700;
    border-color: #ffd700;
}

.Red-btn:active,
button[type="submit"]:active,
button[type="button"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(107, 21, 32, 0.4);
}

/* Reset Button */
.resetForms {
    background: linear-gradient(135deg, #5a5a5a 0%, #4a4a4a 50%, #5a5a5a 100%);
    background-size: 200% 100%;
    color: #ffffff;
    border: 3px solid #888;
}

.resetForms:hover {
    background-position: 100% 0;
    border-color: #aaa;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(90, 90, 90, 0.4);
}

/* Phone Input Special Styling */
.iti__flag-container {
    display: none;
}

.iti__arrow {
    display: none;
}

.iti__selected-dial-code {
    color: #2c2c2c;
}

.itiCustomFocus:focus .iti__selected-dial-code {
    color: #2c2c2c !important;
}

#phone {
    padding-left: 16px !important;
}

/* International Tel Input - Country List Mobile Fix */
.iti__country-list {
    max-width: 100vw;
}

.iti__country {
    word-wrap: break-word;
    white-space: normal;
}

/* Form Row Spacing */
.row {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Focus Effects - Remove default bootstrap */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus,
.custom-selectWrapper .select2-selection.select2-selection--single:focus {
    box-shadow: 0 0 20px rgba(107, 21, 32, 0.25), 
                0 0 12px rgba(212, 175, 55, 0.4);
}

/* Sweet Shop Accent Elements */
.Registration-box {
    position: relative;
}

.Registration-box::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(212, 175, 55, 0.2), 
                transparent, 
                rgba(139, 35, 50, 0.15),
                transparent);
    background-size: 400% 400%;
    border-radius: 2.2rem;
    z-index: -1;
    animation: shimmer 6s ease infinite;
    filter: blur(15px);
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 100%;
        opacity: 1;
    }
    100% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
}

/* Custom SweetAlert Styling */
.custom-swal-popup {
    background-color: #fffef8;
    border: 2px solid #d4af37;
}

.custom-swal-title {
    color: #4a0e14;
    font-weight: 700;
}

.custom-swal-text {
    color: #2c2c2c;
}

.custom-swal-button {
    background: linear-gradient(135deg, #6b1520 0%, #4a0e14 100%) !important;
    color: #d4af37 !important;
    border: 2px solid #d4af37 !important;
    font-weight: 600;
}

.custom-swal-button:hover {
    background: linear-gradient(135deg, #8b1a2a 0%, #6b1520 100%) !important;
}

/* Responsive Design - Mobile Optimized */
@media (max-width: 767px) {
    .layout-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .salutation-radio {
        border: unset;
        background: rgba(255, 255, 255, 0.9);
    }

    .iti__country-list {
        max-width: calc(100vw - 30px);
    }
}

@media (max-width: 768px) {
    .Registration-body {
        padding: 1.5rem;
        margin-top: 2rem !important;
    }

    .Registration-body h2 {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }

    .Registration-body header p.tagline {
        font-size: 1.4rem;
    }

    .Red-btn,
    .resetForms,
    button {
        font-size: 0.85rem;
        padding: 12px 18px;
        letter-spacing: 1.5px;
    }

    .bengalTech-Logo {
        height: 4rem;
    }

    .Fundoo-Logo {
        height: 3.5rem;
    }

    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }

    .form-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .Registration-body {
        padding: 1.2rem;
    }

    .Registration-body h2 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .Registration-body header p.tagline {
        font-size: 1.2rem;
    }

    .logos-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .bengalTech-Logo {
        height: 3.5rem;
    }

    .Fundoo-Logo {
        height: 3rem;
    }

    .Red-btn,
    .resetForms,
    button {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}
