/*
==============================================
  STYLES for iphone17-split-payment.html wizard
==============================================
*/

.split-payment-calculator {
    background: linear-gradient(145deg, var(--background) 0%, var(--background-light) 100%);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Wizard Steps --- */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.wizard-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    flex: 1;
    text-align: center;
    cursor: default;
}

.wizard-steps .step::before {
    content: attr(data-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--background);
    border: 3px solid var(--border-color);
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.wizard-steps .step.completed::before {
    content: '\f00c'; /* Font Awesome checkmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.wizard-steps .step.active::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(30, 58, 138, 0.1);
}

.wizard-steps .step span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.wizard-steps .step.active span, .wizard-steps .step.completed span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive benefits grid */
@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
}


/* --- General Wizard Step Styling --- */
.wizard-step {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* --- Product Selection Grid (2x2) --- */
.products-grid-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.products-grid-row.grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid-row.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 67%; /* Make 2-col rows a bit narrower */
    margin-left: auto;
    margin-right: auto;
}

/* Override product card styles specifically for this page */
.split-payment-page .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    text-align: center;
}

.split-payment-page .product-image {
    padding: 1rem; /* Smaller padding */
    aspect-ratio: 1 / 1;
}

.split-payment-page .product-image img {
    max-height: 160px; /* Limit image height to make it smaller */
    object-fit: contain;
}

.split-payment-page .product-name {
    font-size: 1.1rem; /* Smaller font size */
    margin-bottom: 0.5rem;
}

.split-payment-page .product-price .current-price {
    font-size: 0.8rem; /* Smaller price font */
}

.split-payment-page .product-price .original-price {
    font-size: 0.75rem;
}

.products-grid-row .select-product-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .grid-col-2, .grid-col-3 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}

@media (max-width: 600px) {
    .products-grid-row.grid-col-2, .products-grid-row.grid-col-3 { grid-template-columns: 1fr; max-width: 100%; }
}

/* --- Product Category Toggles --- */
.product-category-container {
    text-align: center;
}

.product-category-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-category-toggle:hover {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

.product-category-toggle i {
    transition: transform 0.3s ease;
}

.product-category-toggle.active i {
    transform: rotate(0deg);
}

.product-section {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease;
}
.product-section.active {
    display: block; /* Shown when active */
}
/* --- Form & Configuration Styling --- */

.detailed-form .form-section-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.detailed-form .form-subsection-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.conditional-section {
    display: none; /* Initially hidden */
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.split-payment-calculator .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-light);
}

.split-payment-calculator .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.configuration-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

#selected-product-summary {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

#selected-product-summary img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

#selected-product-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Calculation Summary --- */
#calculation-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

#calculation-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: var(--secondary-color);
}

.summary-details p {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

.summary-details p:last-child { border-bottom: none; }

.summary-details .total-row, .summary-details .monthly-row {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.summary-details .monthly-row span { color: var(--primary-color); }
