@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Form Wrapper */
#nbnLookupForm {
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Step Title */
.step-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}
.step-number {
    background-color: #00a5bb;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
}

/* Input */
#autocomplete {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Hint */
.hint-button-container,
.hint-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.hint-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hint-text {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}
.hint-arrow-icon {
    width: 34px;
    height: 34px;
    background-image: url('arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: bounce 1s ease-in-out 0s 5;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25%, 75% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
}

/* Address Selection */
#addressSelectionForm {
    margin-top: 20px;
}
#addressSelectionForm .address-label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}
#nbnResult input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}
#nbnResult label {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: inline-block;
    cursor: pointer;
}

/* Buttons */
.lookup-button,
#addressSelectionForm .lookup-button {
    background-color: #00a5bb;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    min-width: 150px;
    text-align: center;
    display: inline-block;
}
.lookup-button:hover {
    background-color: #00879d;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
.lookup-button:active {
    background-color: #007280;
    transform: translateY(1px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.lookup-button:disabled {
    background-color: #d3d3d3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Spinner */
#loadingSpinner {
    display: none;
    text-align: center;
    padding: 20px;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #00a5bb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loadingMessage {
    font-size: 14px;
    color: #00a5bb;
    margin-top: 10px;
}

/* Result Container */
#nbnResult {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
@media (max-width: 768px) {
    .qualification-result {
        flex-direction: column;
    }
}
.qualification-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 10px; /* Increased from 20px */
}

.qualification-success {
    background-color: #d4edda;
	border-radius: 25px;
    border: 1px solid #c3e6cb;
    color: #374151;
}
.qualification-failure {
    background-color: #f8d7da;
	border-radius: 25px;
    border: 1px solid #f5c6cb;
    color: #374151;
}
.result-heading {
    font-size: 1.25em;
    font-weight: bold;
}
.result-intro {
    font-size: 0.875rem;
    margin-top: 8px;
}
.result-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 20px;
}
.result-info {
    flex: 1 1 60%;
    min-width: 300px;
    font-size: 0.875rem;
	padding:10px 0px 0px 20px;
}
.qualification-result .result-info p {
    font-size: 0.875rem;
}

/* Map Container */
.map-container {
    flex: 1 1 35%;
    min-width: 300px;
    height: 300px;
}

#googleMap {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Icon Styling */
.icon {
    margin-right: 10px;
    font-size: 20px;
    color: #007BFF;
    vertical-align: middle;
}
.success-icon,
.fail-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: inline-block;
    background-size: cover;
}
.success-icon {
    background-image: url('success-icon.png');
}
.fail-icon {
    background-image: url('fail-icon.png');
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #nbnLookupForm,
    .lookup-button {
        width: 90%;
        margin: 0 auto;
    }
    .step-title {
        font-size: 14px;
    }
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .hint-text {
        font-size: 12px;
    }
    #autocomplete {
        font-size: 14px;
    }
    .map-container {
        min-width: 100%;
        height: 250px;
    }
}

.plan-options-container {
    margin-top: 30px;
    padding: 20px;
    padding-right: 40px;
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

#planOptions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    min-width: max-content; /* 👈 Important for horizontal scroll */
}

#planOptions::after {
    content: "";
    flex: 0 0 20px;
}

.plan-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 360px;
    min-width: 300px;
}


/* Add Custom Scrollbar (Optional) */
#planOptions::-webkit-scrollbar {
    height: 8px; /* Vertical scrollbar height */
}
#planOptions::-webkit-scrollbar-thumb {
    background-color: #00a5bb;
    border-radius: 8px;
}


/* Plan Button - Updated to match lookup-button styling */
.plan-btn {
    background-color: #00a5bb;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.plan-name {
	text-transform: uppercase !important;
	--tw-text-opacity: 1 !important;
    color: rgb(23 23 23/ 1!important) !important;
	font-size: 1.5rem !important;
    line-height: 2rem !important;
	margin-bottom: .75rem !important;
}
.plan-speed {
	text-transform: uppercase !important;
	--tw-text-opacity: 1 !important;
    color: rgb(23 23 23/ 1!important) !important;
	font-size: 1.5rem !important;
    line-height: 2rem !important;
	margin-bottom: .75rem !important;
	display: inline;
    font-weight: 600;
}
.plan-typical {
	font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 600;
}
.bold600 {
    font-weight: 600;
	display: inline;
}
.bold100 {
    font-weight: 600;
	display: inline;
}
.speed-columns {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.speed-columns > div {
  width: 50%;
  text-align: left; /* or center/right depending on preference */
}
.speed-value { 
	text-align: left; 
	}
	
.speed-label { 
	text-align: right; 
	}
.title-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-value {
  flex: 1;
  text-align: left;
}

.arrow-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.plan-features {
	min-height:165px;	
}
.plan-features ul{
  list-style: none;
  padding: 0;
  margin: 0;
  max-height
}

.plan-features li {
  margin: 0;
  padding-left: 0;
  color: #00a896; /* green tick color */
  margin-right: 0.5em; /* space between icon and text */
  list-style: none;
}

.plan-price {
	text-transform: uppercase !important;
	--tw-text-opacity: 1 !important;
    color: rgb(23 23 23/ 1!important) !important;
	font-size: 3rem !important;
    line-height: 1 !important;
	margin-bottom: .75rem !important;
	display: inline;
    font-weight: 600;
}
.plan-data {
	text-transform: uppercase !important;
	--tw-text-opacity: 1 !important;
    color: rgb(23 23 23/ 1!important) !important;
	font-size: 1.5rem !important;
    line-height: 2rem !important;
	margin-bottom: .75rem !important;
}
.plan-btn:hover {
    background-color: #00879d;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
.plan-btn:active {
    background-color: #007280;
    transform: translateY(1px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Carousel Buttons - Smaller and circular */
.carousel-button {
  background-color: #00a5bb;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin:10px;
}
.carousel-button:hover {
    background-color: #008ba0;
    opacity: 1;
}
.carousel-button-left {
    left: -24px;
}

.carousel-button-right {
    right: -24px;
}
.plan-options {
    display: flex;
    overflow: hidden;
    width: calc(100% - 32px); /* Adjusted to fit 3 items */
}

/* Responsive (hide arrows on small screens or stack them) */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
        top: auto;
        bottom: -10px;
        transform: none;
        opacity: 1;
    }

    .carousel-arrow.left {
        left: 20%;
    }

    .carousel-arrow.right {
        right: 20%;
    }
}