/* --- CONTAINER --- */
#dpc-wrap {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- INPUTS --- */
#dpc-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#dpc-form input[type="text"],
#dpc-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#dpc-form input:focus {
    border-color: #0073aa;
    outline: none;
}

/* --- STRIPE ELEMENT (THE FIX) --- */
#dpc-payment-box {
    margin-top: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* This styles the container holding the iframe */
#dpc-card-element {
    background-color: #fff;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 10px;
    height: 50px; /* Explicit height */
    box-sizing: border-box;
}

#dpc-card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 10px;
}

/* --- BUTTONS --- */
#dpc-calc-btn, #dpc-pay-now, #dpc-q-btn {
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#dpc-calc-btn:hover { background-color: #005177; }
#dpc-calc-btn:disabled { background-color: #6c757d; cursor: not-allowed; }

/* --- BREAKDOWN TABLE --- */
.dpc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.dpc-table td {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
}
.text-right { text-align: right; }
.dpc-border-bottom td {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}
.dpc-subtotal td {
    padding-top: 12px;
    color: #333;
    font-size: 16px;
}
.dpc-grand-total td {
    font-size: 20px;
    color: #0073aa;
    padding-top: 10px;
    border-top: 2px solid #0073aa;
}

.dpc-discount-row {
    background-color: #d4edda; /* Light green background box */
}

.dpc-discount-row td {
    color: #155724; /* Darker green text for contrast */
    font-weight: bold;
    padding-left: 10px; /* Adds space so text doesn't touch the edge of the background */
    padding-right: 10px;
}

/* --- MAP --- */
#dpc-map {
    width: 100%;
    height: 350px;
    background: #eee;
    margin-top: 20px;
    border-radius: 5px;
    display: none; /* JS handles show */
}

/* --- SUCCESS / ERROR --- */
.dpc-success { background: #d4edda; color: #155724; padding: 15px; border-radius: 5px; text-align: center; }
.dpc-error { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 5px; }

/* --- MODAL --- */
#dpc-terms-modal { display:none; position:fixed; z-index:999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.5); }
#dpc-terms-modal .modal-content { background:#fff; margin:10% auto; padding:25px; width:80%; max-width:500px; border-radius:8px; position:relative; }
.close { position:absolute; right:15px; top:10px; font-size:24px; cursor:pointer; }