/* Order Modal CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.price-display-wrapper {
    background: var(--light-bg);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    display: none; /* Shown via JS */
}

.price-display-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-display-value {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.wa-submit-btn {
    width: 100%;
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
}

.wa-submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* === Mitra Modal Specific Styles === */
.mitra-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.mitra-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mitra-step.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(27,94,32,0.3);
}

.mitra-step.done {
    background: var(--secondary);
    color: white;
}

.mitra-step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    max-width: 60px;
    transition: background 0.3s;
}

.mitra-step-line.done {
    background: var(--secondary);
}

.step-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.mitra-next-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s, transform 0.2s;
}

.mitra-next-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mitra-back-btn {
    background: #f1f5f9;
    color: var(--text-main);
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mitra-back-btn:hover {
    background: #e2e8f0;
}

.mitra-summary {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 18px;
}

.mitra-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.mitra-summary-row:last-child {
    border-bottom: none;
}

.mitra-summary-row .label {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 10px;
}

.mitra-summary-row .value {
    color: var(--primary-dark);
    font-weight: 700;
    text-align: right;
}
