/* ============================================
   DUMPSTER RENTAL ORDER FORM - STYLES
   ============================================ */

:root {
    /* Brand Colors - Dark Green Theme */
    --primary: #1B5E20;
    --primary-dark: #0D3B12;
    --primary-light: #2E7D32;
    --primary-bg: #E8F5E9;
    --accent: #F57C00;
    --accent-hover: #E65100;
    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-light: #777;
    --border: #ddd;
    --border-focus: #1B5E20;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --error: #d32f2f;
    --error-bg: #FFEBEE;
    --success: #1B5E20;
    --success-bg: #E8F5E9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Saira Semi Condensed', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Container */
.order-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.order-header {
    text-align: center;
    margin-bottom: 32px;
}

.order-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 3px solid var(--border);
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.15);
}

.progress-step.completed .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--primary);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
    max-width: 80px;
}

.progress-line.active {
    background: var(--primary);
}

/* ============================================
   FORM STEPS
   ============================================ */
.form-step {
    display: none;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

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

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

.form-step h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.step-description {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'PT Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

input.error,
textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.field-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 5px;
}

.field-error {
    font-size: 0.82rem;
    color: var(--error);
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   USAGE CARDS (Step 3)
   ============================================ */
.usage-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.usage-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.usage-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.usage-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.usage-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.usage-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.usage-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================
   SIZE CARDS (Step 4)
   ============================================ */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.size-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.size-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.size-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.size-card .size-image {
    margin-bottom: 12px;
}

.size-card .size-image img {
    width: 100%;
    max-width: 160px;
    height: auto;
}

.size-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.size-card .size-subtitle {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.size-card .size-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Saira Semi Condensed', sans-serif;
}

.size-card .size-price-note {
    font-size: 0.75rem;
    color: var(--text-light);
}

.size-card .size-capacity {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-light);
}


/* ============================================
   NOTICES
   ============================================ */
.zip-pricing-notice,
.zip-error-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.zip-pricing-notice {
    background: var(--success-bg);
    border: 1px solid #A5D6A7;
}

.zip-error-notice {
    background: var(--error-bg);
    border: 1px solid #EF9A9A;
}

.notice-icon {
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.zip-pricing-notice .notice-icon { color: var(--success); }
.zip-error-notice .notice-icon { color: var(--error); }

.notice-text {
    font-size: 0.9rem;
}

/* ============================================
   ORDER SUMMARY (Step 5)
   ============================================ */
.order-summary {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
}

.summary-label {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 16px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    font-size: 0.9rem;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.summary-total .summary-value {
    font-size: 1.4rem;
    color: var(--primary);
    font-family: 'Saira Semi Condensed', sans-serif;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-section {
    margin-bottom: 24px;
}

.payment-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.stripe-card-element {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    transition: border-color 0.2s ease;
}

.stripe-card-element.StripeElement--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.stripe-card-element.StripeElement--invalid {
    border-color: var(--error);
}

.card-errors {
    color: var(--error);
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 20px;
}

.secure-notice {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 20px;
}

.lock-icon {
    margin-right: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Saira Semi Condensed', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.btn-pay {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SUCCESS STATE
   ============================================ */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}

.success-container h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.success-container p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 24px;
}

.success-details {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .order-container {
        margin: 20px auto;
    }

    .form-step {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .usage-options {
        grid-template-columns: 1fr;
    }

    .size-options {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .progress-line {
        max-width: 30px;
    }

    .order-header h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REVIEW PAGE (Step 5)
   ============================================ */
.review-order {
    margin-bottom: 8px;
}

.review-section {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.review-section h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-item.full-width {
    grid-column: 1 / -1;
}

.review-label {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.review-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Review Pricing */
.review-pricing {
    background: var(--bg-white);
    border: 2px solid var(--primary);
}

.pricing-breakdown {
    display: flex;
    flex-direction: column;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-row.pricing-info {
    opacity: 0.7;
}

.pricing-row.pricing-info .pricing-label,
.pricing-row.pricing-info .pricing-value {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pricing-note-row {
    padding: 0 0 8px 0;
}

.pricing-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.pricing-label {
    font-size: 0.95rem;
    color: var(--text-body);
}

.pricing-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.pricing-total .pricing-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-total .pricing-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Saira Semi Condensed', sans-serif;
}

/* Service Agreement Checkbox */
.agreement-section {
    margin-top: 20px;
    padding: 20px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius);
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.agreement-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.agreement-text {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.agreement-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.agreement-text a:hover {
    color: var(--primary-dark);
}

.agreement-error {
    border-color: var(--error) !important;
    background: var(--error-bg) !important;
}

/* ============================================
   SERVICE AGREEMENT MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
}

.modal-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.modal-body h4 {
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 8px 0 12px 20px;
}

.modal-body ul li {
    margin-bottom: 4px;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.modal-footer .btn {
    min-width: 200px;
}

/* Google Places Autocomplete dropdown */
.pac-container {
    z-index: 99999 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    font-family: inherit;
    margin-top: 2px;
}
