/**
 * BT Address Search Styles
 * Save as: assets/address-search.css
 */

/* Form Styles */
.bt-address-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 120px;
}

.check-your-deals-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.check-your-deals {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.sc-postcode-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.sc-postcode-input:focus {
    outline: none;
    border-color: #10446C;
    box-shadow: 0 0 0 3px rgba(90, 33, 182, 0.1);
}

.sc-postcode-btn {
   background-image: linear-gradient(180deg, #10446C 0%, #10446C 100%) !important;
   color: #fff !important;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 194, 65, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.sc-postcode-btn:hover {
    background-image: linear-gradient(180deg, #10446C 0%, #10446C 100%) !important;
    transform: translateY(-2px);
}

.sc-postcode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.MuiButton-label {
    pointer-events: none;
}

/* Loading Spinner */
.bt-loading {
    text-align: center;
    padding: 20px;
}
 
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 
/* Address Modal */
.bt-address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bt-address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 33, 182, 0.9), rgba(160, 56, 240, 0.9));
    backdrop-filter: blur(4px);
}

.bt-address-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bt-address-modal h2 {
    margin: 0;
    padding: 24px 24px 16px;
    font-size: 24px;
    color: #10446C;
    border-bottom: 2px solid #f0f0f0;
}

.bt-address-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    padding: 0;
}

.bt-address-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Address List */
.bt-address-list {
    overflow-y: auto;
    padding: 15px 10px;
    flex: 1;
}

.bt-address-item {
    background: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 16px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.bt-address-item:hover {
    background: #f0e6ff;
    border-color: #10446C;
    transform: translateX(4px);
}

.bt-address-item:active {
    transform: translateX(4px) scale(0.98);
}

.bt-address-display {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.bt-address-details {
    font-size: 14px;
    color: #666;
}

.bt-address-qualifier {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.bt-address-help {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    margin: 0;
    color: #666;
}

.bt-address-help a {
    color: #10446C;
    text-decoration: none;
    font-weight: 600;
}

.bt-address-help a:hover {
    text-decoration: underline;
}

/* Deals Page Styles */
.bt-deals-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.your-broadband-deals {
    background: white;
    border-radius: 12px;
    padding: 30px 0; 
}
div#bt-selected-address {
    display: flex;
    justify-content: center;
}
.selected-address-container {
    color: #434343;
    border: 2px solid #10446C;
    display: flex;
    padding: 15.5px 12px;
    font-size: 16px;
    max-width: max-content;
    background: #F7F7F7;
    align-items: center;
    font-weight: 400;
    border-color: #10446C;
    border-radius: 8px;
    margin-bottom: 32px;
    padding-right: 44px;
    justify-content: center;
    gap: 60px;
    align-items: center;
}
.bt-selected-address h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    opacity: 0.9;
}
 
/* Product Cards */
.bt-products-container { 
    gap: 20px;
    margin-bottom: 30px;
}

.bt-product-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bt-product-card:hover {
    border-color: #10446C;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 33, 182, 0.2);
}

.bt-product-card.featured {
    border-color: #F5C241;
    background: linear-gradient(135deg, #fffbf0, #fff9e6);
}

.bt-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #F5C241;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.bt-product-technology {
    background: #10446C;
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bt-product-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.bt-product-speeds {
    margin: 16px 0;
}

.bt-speed-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bt-speed-label {
    color: #666;
    font-size: 14px;
}

.bt-speed-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}


.bt-product-unavailable {
    opacity: 0.6;
    pointer-events: none;
}

.bt-unavailable-badge {
    background: #999;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-top: 12px;
}
 
.bt-change-address-link {
    color: #10446C;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.bt-change-address-link:hover {
    text-decoration: underline;
}
.best-deal-title {
    text-align: center;
    font-weight: 600;
    margin: 0 0 30px;
}
.bt-package-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
}
.bt-package-tabs button {
    background: none;
    color: #333; 
    border-bottom: #10446C solid 1px;
    margin: 0 0px 5px;
    display: inline-flex;
    padding: 5px 30px 10px;
    line-height: 1;
    font-weight: 400;
    font-size: 16px;
    transition: all ease-in-out .2s;
    position: relative;
    box-shadow: none;
}
.bt-package-tabs button:after{
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    content: '';
    background: transparent;
}
 
.bt-package-tabs button:hover:after{ 
   background: #10446C;
   width: 100%;
   height: 3px;
   bottom: -2px;
}
button.bt-package-tab.active {
    font-weight: 700; 
    font-size: 18px;
    color: #10446C;
    border-color: #F5C241 !important;
}
button.bt-package-tab.active:after{
 background: #F5C241 !important;
 width: 100%;
 bottom: 0 !important;
}
/* Responsive */
@media (max-width: 768px) {
    .check-your-deals-form {
        flex-direction: column;
    }
    
    .check-your-deals {
        width: 100%;
    }
    
    .sc-postcode-btn {
        width: 100%;
    }
    
    .bt-products-container {
        grid-template-columns: 1fr;
    }
    
    .bt-address-modal-content {
        max-height: 90vh;
    }
}


/**
 * BT Address Search Styles - UPDATED VERSION
 * Matches the modern BT design with contract duration toggle
 */

/* Contract Duration Section */
.bt-contract-duration {
    text-align: center; 
    padding: 0; 
    border-radius: 8px;
    grid-column: span 4 / span 4;
}
.bt-contract-duration h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    margin: 0px 0 15px;
}
.bt-contract-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 15px;
}
.bt-contract-toggle-btn {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #10446C !important;
    background: #fff;
    color: #10446C;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important;
    border-radius: 0;
    box-shadow: none !important;
    transform: unset !important;
}
.bt-contract-toggle-btn:first-child {
    border-radius: 24px 0 0 24px;
    border-right: 1px solid #10446C;
}

.bt-contract-toggle-btn:last-child {
    border-radius: 0 24px 24px 0;
    border-left: 1px solid #10446C;
}

.bt-contract-toggle-btn:hover {
    background: #F7F7F7 ;
    color: #10446C;
}
 
.bt-technology-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.bt-technology-link {
    color: #10446C;
font-weight: 700;
    cursor: pointer;
}
.bt-technology-link:hover{
text-decoration: underline !important;
 color: #10446C;
}
/* Products Grid */
.bt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-column: span 4 / span 4;
}
 div#bt-loading {
    position: absolute;
    top: 0;
    left: 30%;
}
@media (min-width: 768px) {
    .bt-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.bt-product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.bt-product-card:hover {
    border-color: #10446C;
    box-shadow: 0 4px 12px rgba(85, 20, 180, 0.15);
    transform: translateY(-2px);
}

/* Product Header - Speed Info */
.bt-product-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #C8C8C8;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 140px;
}
.header-left {
    text-align: left;
}
.bt-product-speed {
    font-size: 24px;
    font-weight: 700;
}
.bt-product-speed-range {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.bt-product-speed-label {
    font-size: 14px;
    color: #555;
        margin-bottom: 5px;
    font-weight: 700;
}
.bt-product-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10446C;
    padding: 0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0px;
}
.bt-icon-check:before {
    content: "✓";
    font-weight: bold;
}

.bt-product-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.bt-icon-upload:before {
    content: "↑";
    font-weight: bold;
}

/* Product Pricing */
.bt-product-pricing {
    text-align: right;
    margin-bottom: 20px;
}

.bt-product-price {
    font-size: 30px;
    font-weight: 700;
    color: #10446C;
    line-height: 1;
}

.bt-product-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.bt-product-future-price {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.bt-product-upfront {
    font-size: 13px;
    color: #666;
}

.bt-product-upfront span {
    font-weight: 600;
    color: #333;
}

/* Product Name */
.bt-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.bt-product-contract {
    text-align: left;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    margin: 15px 0 0;
}
.bt-selected-address h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.bt-selected-address p {
    margin: 0;
    color: #000;
    display: inline-flex;
    line-height: 1.3;
    font-weight: 600;
}

/* Change Address Link */
 
.bt-change-address-link {
    color: #10446C;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
}
.bt-change-address-link svg,.bt-change-address-link svg path{
    fill:#10446C;
    color: #10446C;
}
.bt-change-address-link:hover {
    color: #10446C;
}

/* Search Form Styles */
.bt-address-search-wrapper {
    max-width: 600px;
    margin: 0;
    padding: 30px 30px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.check-your-deals-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.bt-address-search-wrapper input[type="text"]{
    border-radius: 8px;
    border: #10446C solid 1px;
    height: 48px;
}
.check-your-deals {
    flex: 1;
}

.sc-postcode-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sc-postcode-input:focus {
    outline: none;
    border-color: #10446C;
}

.sc-postcode-btn {
    padding: 14px 32px;
    background: #10446C;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sc-postcode-btn:hover {
    background: #6b1fd9;
}

/* Loading Spinner */
.bt-loading {
    text-align: center;
    padding: 40px 20px;
    grid-column: span 4 / span 4;
}

.bt-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10446C;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 0px;
}

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

/* Error Message */
.bt-error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    color: #856404;
    text-align: center;
        grid-column: span 4 / span 4;
}
 
/* Responsive */
@media (max-width: 767px) {
    .bt-products-grid {
        grid-template-columns: 1fr;
    }
    
    .check-your-deals-form {
        flex-direction: column;
    }
    
    .sc-postcode-btn {
        width: 100%;
    }
    
    .bt-contract-toggle {
        flex-direction: column;
        gap: 12px;
    }
    
    .bt-contract-toggle-btn {
        border-radius: 24px !important;
        border: 2px solid #10446C !important;
    }
}
/**
 * ✅ FIXED: Non-clickable active tabs styling
 * Add this to address-search.css
 */

/* Package Tabs - Active state non-clickable */
.bt-package-tabs button.active {
    font-weight: 700; 
    font-size: 18px;
    color: #10446C;
    border-color: #F5C241 !important;
    cursor: default; /* ✅ Change cursor for active tab */
    pointer-events: none; /* ✅ Prevent clicking */
}

.bt-package-tabs button.active:after {
    background: #F5C241 !important;
    width: 100%;
    bottom: 0 !important;
}

/* Make inactive tabs clearly clickable */
.bt-package-tabs button:not(.active) {
    cursor: pointer;
    pointer-events: auto;
}

.bt-package-tabs button:not(.active):hover {
    opacity: 0.8;
}

/* Contract Duration Buttons - Active state non-clickable */
.bt-contract-toggle-btn.active {
    background: #10446C;
    color: #fff;
    cursor: default; /* ✅ Change cursor for active button */
    pointer-events: none; /* ✅ Prevent clicking */
}

/* Make inactive contract buttons clearly clickable */
.bt-contract-toggle-btn:not(.active) {
    cursor: pointer;
    pointer-events: auto;
}

.bt-contract-toggle-btn:not(.active):hover {
    background: #F7F7F7;
    color: #10446C;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Product Features Styling */
.bt-product-features {
    margin: 16px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bt-feature-item {
    font-size: 14px;
    color: #333;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-feature-item:before {
    content: "✓";
    color: #10446C;
    font-weight: bold;
}

/* Best Used For Tags */
.bt-product-best-for {
    margin: 16px 0;
}

.bt-best-for-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.bt-best-for-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-use-tag {
    background: #f0e7ff;
    color: #10446C;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.bt-product-actions {
    display: grid;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    grid-template-columns: 1fr;
}
.bt-product-select-btn {
    width: 100%;
    padding: 10px 16px;
    background: #10446C;
    color: #fff;
    border: none;
    border-radius: 24px;
    border: 2px solid #10446C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}
.bt-product-select-btn:hover {
    background-image: linear-gradient(180deg, #F5C241 0%, #E6AF2E 100%);
}
.bt-product-customise-btn {
    width: 100%;
    padding: 10px 10px;
    background: transparent;
    color: #10446C;
    border: 2px solid #10446C;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}
.bt-product-customise-btn:hover {
    background: linear-gradient(180deg, #F5C241 0%, #E6AF2E 100%);
    color: #10446C;
}
.bt-product-fiber-badge {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: #10446C;
    margin: 0 0 10px;
    padding: 0 0 5px;
    border-radius: 0;
    border-bottom: 2px solid #C8C8C8;
}
.bt-product-feature {
    display: grid;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: #333;
    grid-template-columns: 18px 1fr;
    position: relative;
    width: 100%;
}
.bt-feature-icon {
    font-size: 18px;
    color: #10446C;
    text-align: left;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}