/* Mile High Networks Pricing Tool - Frontend Styles */

:root {
    --mhn-blue-dark: #1e40af;
    --mhn-blue-medium: #2563eb;
    --mhn-blue-light: #3b82f6;
    --mhn-accent: #fbbf24;
    --mhn-accent-light: #fef3c7;
}

.mhn-pricing-checker {
    max-width: 1000px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mhn-checker-header {
    text-align: center;
    margin-bottom: 40px;
}

.mhn-checker-header h2 {
    color: var(--mhn-blue-dark);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 15px;
}

.mhn-checker-header p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.mhn-checker-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.mhn-form-group {
    margin-bottom: 25px;
}

.mhn-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.mhn-form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mhn-form-group input:focus {
    outline: none;
    border-color: var(--mhn-blue-medium);
}

/* Google Places Autocomplete Styling */
.pac-container {
    border-radius: 8px;
    border: 2px solid var(--mhn-blue-medium);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pac-item {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #eff6ff;
}

.pac-item-selected {
    background-color: #eff6ff;
}

.pac-icon {
    margin-top: 8px;
}

.pac-item-query {
    color: #1f2937;
    font-weight: 500;
}

.mhn-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.mhn-button-primary {
    background-color: #007ec3;
    color: #ffffff;
    width: 100%;
}

.mhn-button-primary:hover {
    background-color: #006ba8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 126, 195, 0.3);
}

.mhn-button-primary:active {
    transform: translateY(0);
}

/* Results Section */
.mhn-results {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mhn-results-header {
    background: linear-gradient(135deg, var(--mhn-blue-dark) 0%, var(--mhn-blue-medium) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.mhn-results-header.out-of-coverage {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.mhn-results-header h3 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 400;
}

.mhn-results-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.mhn-pricing-plans {
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mhn-pricing-plans > h3 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 400;
}

/* Individual Plan Card */
.mhn-plan {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    margin: 20px auto;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.mhn-plan:hover {
    border-color: var(--mhn-blue-medium);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.mhn-plan.selected {
    border-color: var(--mhn-blue-medium);
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(to right, #eff6ff 0%, #ffffff 20%);
}

.mhn-plan.selected .mhn-plan-select {
    background: #10b981;
}

.mhn-plan.selected .mhn-plan-select::after {
    content: " ✓";
}

.mhn-plan.featured {
    border-color: var(--mhn-accent);
    background: linear-gradient(to right, #fffbeb 0%, #ffffff 30%);
}

.mhn-plan-badge {
    background: var(--mhn-accent);
    color: #000;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mhn-plan-content {
    padding: 20px 24px;
    text-align: left;
}

.mhn-plan-content h3,
.mhn-plan-content p,
.mhn-plan-content li {
    color: #1f2937 !important;
}

.mhn-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    text-align: left;
}

.mhn-plan-info {
    flex: 1;
    text-align: left;
}

.mhn-plan-name {
    font-weight: 600;
    color: #1f2937 !important;
    font-size: 20px;
    margin: 0 0 6px 0;
    text-align: left;
}

.mhn-plan-tagline {
    font-size: 14px;
    color: #1f2937 !important;
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: left;
}

.mhn-plan-speed-box {
    text-align: right;
    padding-left: 20px;
}

.mhn-plan-speed-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.mhn-plan-speed-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 2px;
}

.mhn-plan-speed-label-upload {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    margin-top: 6px;
}

.mhn-plan-headline {
    font-size: 14px;
    color: #1f2937 !important;
    font-weight: 700;
    margin: 14px 0 10px 0;
    text-align: left;
}

.mhn-plan-bullets {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mhn-plan-bullets li {
    font-size: 14px;
    color: #1f2937 !important;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 24px;
    position: relative;
    text-align: left;
}

.mhn-plan-bullets li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
    font-size: 16px;
}

.mhn-plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.mhn-plan-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mhn-plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.mhn-plan-price-suffix {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.mhn-plan-select {
    background: #007ec3;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mhn-plan-select:hover {
    background: #006ba8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 126, 195, 0.3);
}

/* Lead Form */
.mhn-lead-form {
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mhn-lead-form h4 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.mhn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.mhn-form-field {
    margin-bottom: 20px;
}

.mhn-form-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.mhn-form-field input,
.mhn-form-field select,
.mhn-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.mhn-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.mhn-form-field input:focus,
.mhn-form-field select:focus,
.mhn-form-field textarea:focus {
    outline: none;
    border-color: var(--mhn-blue-medium);
}

.mhn-submit-button {
    background-color: #10b981;
    color: white;
    width: 100%;
}

.mhn-submit-button:hover {
    background-color: #059669;
}

.mhn-out-coverage-message {
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mhn-out-coverage-message p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 20px;
}

.mhn-success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mhn-success-message h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
}

.mhn-success-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.mhn-error-message {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .mhn-pricing-checker {
        padding: 0 20px;
    }
    
    .mhn-checker-form {
        padding: 25px;
    }
    
    .mhn-checker-header h2 {
        font-size: 28px;
    }
    
    .mhn-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mhn-plan-header {
        flex-direction: column;
    }
    
    .mhn-plan-speed-box {
        text-align: left;
        padding-left: 0;
        margin-top: 12px;
    }
    
    .mhn-plan-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .mhn-plan-select {
        width: 100%;
    }
}

/* Loading Animation */
#mhn-loading {
    text-align: center !important;
    padding: 60px 40px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

#mhn-loading[style*="display: block"],
#mhn-loading[style*="display:block"] {
    display: block !important;
}

.mhn-loader {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.mhn-loader:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #007ec3;
    border-color: #007ec3 transparent #007ec3 transparent;
    animation: mhn-loader-spin 1.2s linear infinite;
}

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

#mhn-loading h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

#mhn-loading p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.mhn-loading-steps {
    margin-top: 30px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mhn-loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.mhn-loading-step.active {
    color: #007ec3;
    font-weight: 600;
}

.mhn-loading-step .mhn-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.mhn-loading-step.active .mhn-step-icon {
    background: #007ec3;
}

.mhn-loading-step.complete .mhn-step-icon {
    background: #10b981;
}

/* Appointment Calendar */
.mhn-calendar-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.mhn-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.mhn-calendar-week-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.mhn-calendar-prev,
.mhn-calendar-next {
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
}

.mhn-calendar-prev:hover:not(:disabled),
.mhn-calendar-next:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #007ec3;
    color: #007ec3;
}

.mhn-calendar-prev:disabled,
.mhn-calendar-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mhn-calendar-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.mhn-calendar-day {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.mhn-calendar-day-header {
    background: #1e40af;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.mhn-calendar-date {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.mhn-calendar-slots {
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mhn-time-slot {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
    text-align: center;
}

.mhn-time-slot:hover {
    background: #e0f2fe;
    border-color: #007ec3;
    color: #007ec3;
}

.mhn-time-slot.selected {
    background: #007ec3;
    border-color: #007ec3;
    color: white;
    font-weight: 600;
}

.mhn-no-slots {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    padding: 20px 5px;
    margin: 0;
}

.mhn-calendar-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Responsive calendar */
@media (max-width: 968px) {
    .mhn-calendar-days {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .mhn-calendar-days {
        grid-template-columns: 1fr;
    }
    
    .mhn-calendar-nav {
        flex-direction: column;
    }
    
    .mhn-calendar-prev,
    .mhn-calendar-next {
        width: 100%;
    }
}

/* Checkout Layout */
.mhn-checkout-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.mhn-checkout-left {
    background: white;
}

.mhn-checkout-right {
    position: relative;
}

.mhn-order-summary {
    background: #f9fafb;
    border: 2px solid #007ec3;
    border-radius: 12px;
    padding: 20px;
}

.mhn-appointment-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.mhn-appointment-section h5 {
    margin-bottom: 20px;
}

.mhn-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #1f2937;
}

.mhn-summary-label {
    font-size: 13px;
    color: #4b5563;
}

.mhn-summary-value {
    font-weight: 600;
    color: #1f2937;
}

.mhn-summary-divider {
    border-top: 2px solid #e5e7eb;
    margin: 12px 0;
}

.mhn-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: #eff6ff;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
}

.mhn-summary-total .mhn-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
}

.mhn-summary-total .mhn-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
}

.mhn-summary-monthly {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 8px;
}

.mhn-summary-monthly .mhn-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.mhn-summary-monthly .mhn-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.mhn-guarantee {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    line-height: 1.5;
}

.mhn-guarantee p {
    margin-bottom: 8px;
    color: #1f2937 !important;
}

.mhn-guarantee strong {
    color: #1f2937;
}

@media (max-width: 968px) {
    .mhn-checkout-container {
        grid-template-columns: 1fr;
    }
    
    .mhn-order-summary {
        position: static;
        order: -1;
    }
}

/* Checkout Wizard */
.mhn-checkout-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.mhn-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.mhn-wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.mhn-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.mhn-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.mhn-wizard-step.active .mhn-step-number {
    background: #007ec3;
    color: white;
}

.mhn-wizard-step.completed .mhn-step-number {
    background: #10b981;
    color: white;
}

.mhn-step-label {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.mhn-wizard-step.active .mhn-step-label {
    color: #1f2937;
    font-weight: 600;
}

.mhn-wizard-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.mhn-wizard-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: space-between;
}

.mhn-wizard-nav button {
    flex: 1;
    max-width: 250px;
}

.mhn-button-primary {
    background-color: #007ec3 !important;
    color: white !important;
}

.mhn-button-primary:hover {
    background-color: #005a8f !important;
}

.mhn-address-display {
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #1f2937;
}

/* Order Review */
.mhn-order-review {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.mhn-review-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mhn-review-section:last-of-type {
    border-bottom: none;
}

.mhn-review-section h4 {
    color: #1f2937 !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mhn-review-section p {
    color: #1f2937 !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.mhn-review-table {
    width: 100%;
    border-collapse: collapse;
}

.mhn-review-table td {
    padding: 10px 0;
    color: #4b5563;
    text-align: left;
}

.mhn-review-table td:last-child {
    text-align: left;
    padding-left: 20px;
    font-weight: 600;
    color: #1f2937;
}

.mhn-review-total td {
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    color: #1e40af !important;
    font-size: 18px;
}

.mhn-review-monthly td {
    color: #059669 !important;
    font-size: 16px;
}

/* Confirmation */
.mhn-confirmation-box {
    text-align: center;
    padding: 60px 40px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 2px solid #10b981;
}

.mhn-confirmation-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

@media (max-width: 640px) {
    .mhn-wizard-progress {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .mhn-wizard-step {
        flex: 0 0 calc(50% - 8px);
    }
    
    .mhn-wizard-nav {
        flex-direction: column;
    }
    
    .mhn-wizard-nav button {
        max-width: 100%;
    }
}

/* Email validation error state */
.mhn-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}
