/* Registration Form Styling */

:root {
    --dark-blue: #1D8FD6;
    --medium-blue: #2FAFE2;
    --light-blue: #4CCAEF;
    --bg-color: #F8F8FF;
    --yellow: #FFF35C;
    --orange: #FF9F1C;
    --coral: #FF7F50;
    --hero-blue: #115986;
    --form-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --card-bg: #fff;
}

/* Global Styles */
body .registration-body {
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.required {
    color: var(--coral);
}

/* Hero Section */
.hero-section {
    background-color: var(--hero-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 89px 0 100px;
    /* padding: 0 20px; */
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.hero-description {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-shape {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 80%);
    z-index: 1;
}

/* Registration Container */
.registration-container {
    max-width: 1200px;
    margin: -100px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.registration-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Container */
.registration-form-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--form-shadow);
    padding: 40px;
    position: relative;
}

/* Security Badge */
.security-badge {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 14%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.security-badge img {
    width: 80%;
    height: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.8rem;
    color: var(--hero-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
    display: flex;
    align-items: center;
}

/* .section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 30px;
    background-color: var(--medium-blue);
    margin-right: 15px;
    border-radius: 4px;
} */

.section-description {
    color: #666;
    margin-bottom: 30px;
}

/* Two-column form layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-col {
    flex: 1 0 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .form-col {
        flex: 1 0 50%;
    }
}

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

.form-group label {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

#registrationForm .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    height: auto;
    min-height: 50px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    /* width: 100%; */
    background-color: #fff;
}

#registrationForm .form-control:focus {
    border-color: var(--medium-blue);
    box-shadow: 0 0 0 0.2rem rgba(47, 175, 226, 0.25);
    outline: none;
    background-color: #fff;
}

/* Specific styling for select elements that are NOT enhanced by Select2 */
select.form-control:not(.select2-hidden-accessible) {
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none; */
}

.input-group-text {
    background-color: var(--light-blue);
    color: white;
    border: none;
}

.form-check {
    margin-top: 10px;
}

.form-text {
    color: #777;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Logo Upload */
.logo-upload-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: rgba(76, 202, 239, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.logo-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-preview:hover {
    border-color: var(--medium-blue);
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-upload {
    flex: 1;
    min-width: 250px;
}

/* Package Selection */
.package-options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.package-card {
    flex: 1;
    min-width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.5;
}

.package-card:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
}

.package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.package-card label {
    display: block;
    /* cursor: pointer; */
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.package-card input[type="radio"]:checked + label {
    border-color: var(--medium-blue);
    box-shadow: 0 0 20px rgba(47, 175, 226, 0.4);
}

.package-header {
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 100%; */
}

.package-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
}

.package-header b {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

.package-card.premium-package .package-header {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.package-price {
    font-size: 1.6rem;
    font-weight: bold;
}

.package-body {
    padding: 25px;
    background-color: white;
}

.package-body p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--hero-blue);
}

.package-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.package-body li {
    margin-bottom: 10px;
    color: #555;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 5px 0;
    padding: 20px;
    background-color: rgba(17, 89, 134, 0.05);
    border-radius: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    color: var(--hero-blue);
}

.trust-item i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--medium-blue);
}

/* Submit Button */
#registrationForm .btn-primary {
    background: linear-gradient(135deg, var(--medium-blue), var(--hero-blue));
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 8px;
}

#registrationForm .btn-primary:hover {
    background: linear-gradient(135deg, var(--hero-blue), var(--medium-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 143, 214, 0.3);
}

/* Success Page */
.registration-success-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--form-shadow);
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.success-check {
    font-size: 80px;
    color: #4CAF50;
}

.registration-success-container h1 {
    color: var(--hero-blue);
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.next-steps h2 {
    color: var(--hero-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.next-steps ol {
    padding-left: 25px;
}

.next-steps li {
    margin-bottom: 12px;
    color: #555;
}

.contact-info {
    margin: 30px 0;
    color: #666;
}

.action-buttons {
    margin-top: 40px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .registration-container {
        margin-top: -80px;
    }
    
    .security-badge {
        top: -20px;
        right: 20px;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        /* padding: 70px 0 150px; */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .registration-container {
        padding: 0 15px;
        margin-top: -60px;
    }
    
    .registration-form-container {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .package-options {
        flex-direction: column;
    }
    
    .package-card {
        width: 100%;
    }
    
    .logo-upload-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-preview {
        width: 120px;
        height: 120px;
    }
    
    .security-badge {
        width: 70px;
        height: 70px;
        top: -15px;
        right: 15px;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 3px solid var(--light-blue);
    outline-offset: 2px;
}

#registrationForm .form-control:focus, .btn:focus {
    outline: none;
}

/* Skip to content for screen readers */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    padding: 10px;
    background: var(--dark-blue);
    color: white;
    z-index: 9999;
}

#registrationForm select {background-position-x: 98% !important;}

/* Select2 Custom Styling */
.select2-container {
    /* width: 100% !important; */
}

.select2-container--default .select2-selection--single {
    height: auto;
    min-height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--medium-blue);
    box-shadow: 0 0 0 0.2rem rgba(47, 175, 226, 0.25);
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    padding: 13px 15px;
    color: #333;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    right: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #666 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--medium-blue);
    color: white;
}

.select2-results__option {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown .select2-search__field {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Mobile Country Code Dropdown Styling */
.mobile-code-container {
    min-width: 180px;
    width: auto;
}

.mobile-code-container .select2-container {
    width: 180px !important;
}

.mobile-code-container .select2-container--default .select2-selection--single {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.dial-code-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Ensure the mobile input field has the correct border radius */
#contact_mobile {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Input group styling for mobile number */
.input-group .mobile-code-container .select2-container--default .select2-selection--single {
    height: 50px;
    display: flex;
    align-items: center;
}

#registrationForm .input-group .form-control {
    height: 50px;
}

.package-card{
    border-color: transparent;
    border: 0px solid;
    background-color: white;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 5px solid;
}

.alert-danger {
    background-color: #fff5f5;
    color: #dc3545;
    border-color: #dc3545;
}

/* Add some animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.registration-form-container {
    animation: fadeIn 0.5s ease-out;
}