/* =============================================
   GENERAL LAYOUT
   ============================================= */
body {
    background-color: #f1f2f3;
}

.signup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px 15px;
}

.section-card {
    margin-bottom: 20px;
}

.section-card .card-header {
    background-color: #005B9A;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 20px;
}

.section-card .card-body {
    padding: 20px;
}

/* =============================================
   MODAL OVERRIDES
   ============================================= */
.modal-content {
    background-color: #fff !important;
    color: #1A1E4D !important;
}

.modal-header.bg-danger,
.bg-danger {
    background-color: #E81D2A !important;
    border-color: #E81D2A !important;
}

.modal-body {
    background-color: #fff !important;
    color: #1A1E4D !important;
}

.modal-footer {
    background-color: #fff !important;
}

.modal-header .btn-close svg {
    display: none !important;
}

.modal-header .btn-close {
    opacity: 0.8 !important;
}

.btn.bg-danger,
.btn-outline-light.bg-danger {
    background-color: #E81D2A !important;
    border-color: #E81D2A !important;
    color: #fff !important;
}

.btn.bg-danger:hover,
.btn.bg-danger:focus,
.btn-outline-light.bg-danger:hover,
.btn-outline-light.bg-danger:focus {
    background-color: #c41824 !important;
    border-color: #c41824 !important;
}

/* =============================================
   BOOTSTRAP OVERRIDES
   ============================================= */
.btn-primary {
    background-color: #005B9A !important;
    border-color: #005B9A !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    background-color: #004a7c !important;
    border-color: #004a7c !important;
}

.btn-outline-primary {
    color: #005B9A !important;
    border-color: #005B9A !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:active:focus {
    background-color: #005B9A !important;
    border-color: #005B9A !important;
    color: #fff !important;
}

/* Form select dropdowns */
.form-select:focus {
    border-color: #005B9A !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 154, 0.25) !important;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:active,
.form-select option:checked,
select option:hover,
select option:focus,
select option:active,
select option:checked {
    background: #005B9A !important;
    background-color: #005B9A !important;
    color: #fff !important;
    -webkit-appearance: none;
}

.form-select option,
select option {
    background-color: #fff !important;
    color: #1A1E4D !important;
}

.form-control:focus {
    border-color: #005B9A !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 154, 0.25) !important;
}

/* Radio buttons and checkboxes */
.form-check-input:checked {
    background-color: #005B9A !important;
    border-color: #005B9A !important;
}

.form-check-input:focus {
    border-color: #005B9A !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 154, 0.25) !important;
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* =============================================
   NAVBAR
   ============================================= */
.signup-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e6ed;
    padding: 10px 0;
    margin-bottom: 25px;
}

.signup-navbar .navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1E4D;
}

.signup-navbar .navbar-brand img {
    height: 60px;
    max-width: 100%;
}

/* =============================================
   ADDRESS SECTION
   ============================================= */
#divAddressResult {
    margin-top: 15px;
}

#divNotInArea {
    margin-top: 15px;
}

/* =============================================
   PLAN CARDS
   ============================================= */
.plan-card {
    cursor: pointer;
    border: 2px solid #e0e6ed;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.plan-card:hover {
    border-color: #005B9A;
    box-shadow: 0 4px 12px rgba(0, 91, 154, 0.15);
}

.plan-card-selected {
    border-color: #005B9A;
    background-color: #e6f0f7;
    box-shadow: 0 4px 12px rgba(0, 91, 154, 0.2);
}

.plan-radio-container {
    text-align: left;
    margin-bottom: 5px;
}

.plan-radio {
    width: 20px;
    height: 20px;
}

.plan-name {
    color: #3b3f5c;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-speed {
    color: #005B9A;
    font-weight: 600;
    font-size: 0.95rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1E4D;
}

.plan-price-period {
    font-size: 1rem;
    color: #888ea8;
}

.plan-regular-price {
    font-size: 0.85rem;
    color: #e7515a;
    margin-top: 2px;
}

.plan-description {
    font-size: 0.88rem;
    color: #888ea8;
}

.plan-datacap {
    font-size: 0.85rem;
    color: #E81D2A;
    font-weight: 600;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
}

.product-image {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
}

.product-name {
    font-weight: 600;
    color: #3b3f5c;
    min-height: 40px;
}

.product-description {
    color: #888ea8;
    min-height: 50px;
}

.product-price {
    font-weight: 700;
    color: #005B9A;
    font-size: 1.1rem;
}

.qty-selector {
    max-width: 130px;
    margin: 0 auto;
}

.qty-selector .form-control {
    background-color: #fff;
    color: #1A1E4D !important;
    font-weight: 600;
}

/* =============================================
   DISCOUNT OPTIONS
   ============================================= */
.discount-option {
    padding: 12px 15px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 10px;
}

.discount-option label {
    cursor: pointer;
    margin-bottom: 0;
}

.discount-option .discount-option-name {
    font-weight: 600;
    color: #3b3f5c;
}

.discount-option .discount-option-desc {
    font-size: 0.88rem;
    color: #888ea8;
    margin-left: 26px;
}

.discount-rule-message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.discount-rule-message.discount-hint {
    background-color: #e6f0f7;
    border: 1px solid #005B9A;
    color: #005B9A;
}

.discount-rule-message.discount-earned {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

/* =============================================
   SUMMARY TABLE
   ============================================= */
.summary-table {
    width: 100%;
}

.summary-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #e0e6ed;
}

.summary-total-row td {
    border-top: 2px solid #3b3f5c;
    padding-top: 12px;
    font-size: 1.1rem;
}

.summary-credit td {
    color: #005B9A;
}

.summary-charge td {
    color: #3b3f5c;
}

/* =============================================
   PASSWORD TOGGLE
   ============================================= */
.password-wrapper {
    position: relative !important;
    display: block;
}

.password-toggle {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888ea8;
    line-height: 0;
    z-index: 4;
}

.password-toggle:hover {
    color: #3b3f5c;
}

/* =============================================
   PAYMENT TOGGLE
   ============================================= */
.payment-method-group .form-check {
    display: inline-block;
    margin-right: 20px;
}

/* =============================================
   CONFIRMATION
   ============================================= */
.confirmation-card {
    border: 2px solid #005B9A;
    background-color: #e6f0f7;
}

.confirmation-card .card-body {
    text-align: center;
    padding: 40px;
}

.confirmation-icon {
    font-size: 4rem;
    color: #005B9A;
}

.reference-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A1E4D;
    letter-spacing: 2px;
}

/* =============================================
   SPINNER / WAITING
   ============================================= */
.spinner-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner-wrapper .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #fff;
}

.spinner-wrapper .spinner-text {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* =============================================
   TERMS OF SERVICE
   ============================================= */
#sectionTerms a,
#sectionContract a {
    color: #005B9A !important;
}

#sectionTerms a:hover,
#sectionContract a:hover {
    color: #004a7c !important;
}

/* =============================================
   FLOATING BANNER
   ============================================= */
.floating-banner {
    position: fixed;
    top: 120px;
    right: -4px;
    z-index: 1000;
    background-color: #005B9A;
    color: #fff;
    padding: 12px 16px 12px 20px;
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.25);
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 240px;
    line-height: 1.4;
    border-left: 4px solid #1a8fd1;
    cursor: pointer;
    transition: max-width 0.3s ease, padding 0.3s ease;
}

.floating-banner.collapsed {
    max-width: 36px;
    padding: 12px 10px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.banner-arrow {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .floating-banner {
        top: auto;
        bottom: 16px;
        right: 0;
        border-radius: 8px 0 0 8px;
        max-width: 170px;
        font-size: 0.8rem;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .plan-price {
        font-size: 1.5rem;
    }

    .signup-container {
        padding: 10px 5px 30px 5px;
    }
}
