/* Basic reset and fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Header styles */
header {
    background-color: #2c9d5d;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.logo h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
}

/* Quote builder container */
.quote-builder {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Step indicator */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.step.active {
    background-color: #2c9d5d;
    color: white;
}

.step.completed {
    background-color: #22804a;
    color: white;
}

/* Form sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    color: #2c9d5d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Address input */
.address-input {
    margin-bottom: 1.5rem;
}

.address-input input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Palm grid */
.palm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.palm-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.palm-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.palm-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.palm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.palm-card:hover .palm-img img {
    transform: scale(1.05);
}

.not-sure-img {
    background-color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-sure-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.palm-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.palm-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.add-to-cart-btn {
    background-color: #2c9d5d;
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #22804a;
}

.add-to-cart-btn.added {
    background-color: #666;
}

/* Cart section */
.cart-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#cartCount {
    background-color: #2c9d5d;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.cart-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    min-height: 100px;
}

.cart-empty {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    flex-grow: 1;
    font-weight: bold;
}

.cart-item-count {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.cart-qty {
    margin: 0 0.5rem;
    min-width: 1.5rem;
    text-align: center;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background-color: #e0e0e0;
}

.cart-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: #ff4d4d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove-btn:hover {
    background-color: #e64141;
}

/* Configuration panels */
#palmConfigurations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.config-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.config-header {
    background-color: #f0f0f0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-title {
    color: #2c9d5d;
    margin: 0;
}

.config-quantity {
    font-weight: bold;
}

.config-options {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background-color: #f9f9f9;
}

.config-group {
    margin-bottom: 1.5rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.height-options,
.accessibility-options,
.service-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.height-option,
.accessibility-option,
.service-option {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.height-option:hover,
.accessibility-option:hover,
.service-option:hover {
    background-color: #f0f0f0;
}

.height-option input,
.accessibility-option input,
.service-option input {
    margin-right: 0.8rem;
}

.config-price {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6f7ef;
    font-weight: bold;
}

.price-value {
    color: #2c9d5d;
    font-size: 1.2rem;
}

/* Summary and contact info */
.quote-summary {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.quote-summary h3 {
    color: #2c9d5d;
    margin-bottom: 1rem;
}

.summary-table {
    overflow-x: auto;
    margin-bottom: 1rem;
}

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

.summary-table th, 
.summary-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.summary-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.summary-table tfoot td {
    font-weight: bold;
}

.total-row {
    background-color: #e6f7ef;
    font-size: 1.1rem;
}

.total-row td {
    padding: 1rem 0.8rem;
}

#totalPrice, #subtotalPrice, #discountAmount {
    color: #2c9d5d;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Contact Information */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    color: #2c9d5d;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Navigation buttons */
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.prev-btn {
    background-color: #f0f0f0;
    color: #333;
}

.prev-btn:hover {
    background-color: #e0e0e0;
}

.next-btn {
    background-color: #2c9d5d;
    color: white;
}

.next-btn:hover {
    background-color: #22804a;
}

.submit-btn {
    background-color: #ff9900;
    color: white;
}

.submit-btn:hover {
    background-color: #e68a00;
}

/* Confirmation screen */
.confirmation {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #2c9d5d;
    margin-bottom: 1rem;
}

#confirmationPrice {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c9d5d;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

/* Error Styles */
.error-field {
    border: 2px solid #ff0000 !important;
    background-color: #ffeeee !important;
}

.error-message {
    color: #ff0000;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    animation: fadeIn 0.3s;
}

.error-section {
    border: 2px solid #ff0000 !important;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Order ID */
.summary-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.order-id {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

#orderIdDisplay {
    color: #2c9d5d;
}

/* Schedule section */
.schedule-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.schedule-section h3 {
    color: #2c9d5d;
    margin-bottom: 1rem;
}

.date-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Payment section */
.payment-section {
    background-color: #f0f9f4;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-section h3 {
    color: #2c9d5d;
    margin-bottom: 0.5rem;
}

.payment-section p {
    margin-bottom: 1.5rem;
}

.payment-options {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-btn {
    background-color: #635BFF; /* Stripe purple */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
}

.payment-btn:hover {
    background-color: #4F46E5;
}

#paymentAmount {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.payment-confirmation {
    margin-top: 1rem;
}

.payment-confirmation label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-confirmation input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Confirmation screen updates */
.confirmation-details {
    background-color: #f0f9f4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.confirmation-details span {
    font-weight: bold;
    color: #2c9d5d;
}

#confirmationEmail {
    font-weight: bold;
}

/* Form textarea */
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

/* Submit button disabled state */
.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .palm-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .config-options {
        grid-template-columns: 1fr;
    }
    
    .form-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
    }
}

/* Add these CSS rules to your existing styles.css file */

/* Blurred pricing styles */
.blurred-price {
    filter: blur(5px);
    user-select: none;
    color: transparent;
    text-shadow: 0 0 8px rgba(44, 157, 93, 0.8);
    position: relative;
}

.blurred-price::after {
    content: "Submit to view pricing";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    color: #2c9d5d;
    font-weight: bold;
    filter: blur(0);
    text-shadow: none;
    pointer-events: none;
}

/* Styles for when prices are revealed */
.revealed-price {
    filter: blur(0);
    color: #2c9d5d;
    text-shadow: none;
    transition: all 0.5s ease;
}

.revealed-price::after {
    display: none;
}

/* Lock icon for pricing */
.price-lock {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9em;
}

/* Price reveal banner */
.price-reveal-banner {
    background-color: #2c9d5d;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 20px 0;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.5s;
}

.price-reveal-banner.visible {
    display: block;
}

/* Add these CSS rules to your existing styles.css file */

/* Pricing message in summary table */
.pricing-message {
    padding: 15px;
    text-align: center;
}

.pricing-callout {
    background-color: #f0f9f4;
    border: 2px dashed #2c9d5d;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1rem;
    color: #2c9d5d;
    font-weight: bold;
    display: inline-block;
}

.lock-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Price reveal section */
#pricingReveal {
    display: none;
}

#pricingReveal.active {
    display: block;
}

.reveal-animation {
    animation: slideInUp 0.5s;
}

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

/* Price reveal banner */
.pricing-reveal-banner {
    background-color: #2c9d5d;
    color: white;
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Confirm button */
.confirm-btn {
    background-color: #ff9900;
    color: white;
}

.confirm-btn:hover {
    background-color: #e68a00;
}

/* Submit button update */
.submit-btn {
    background-color: #2c9d5d;
    color: white;
    position: relative;
}

.submit-btn:hover {
    background-color: #22804a;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}