/**
 * DHL Standalone Shipping - Frontend Styles
 */

/* Quote Results */
#dhl-quote-results {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none;
}

.dhl-quote-box h3 {
    margin-top: 0;
    color: #d40511;
    font-size: 24px;
}

.dhl-quote-recommended {
    background: white;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #d40511;
    text-align: center;
}

.dhl-quote-recommended h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.dhl-quote-price {
    font-size: 36px;
    font-weight: bold;
    color: #d40511;
    margin: 15px 0;
}

.dhl-delivery-time {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.dhl-proceed-button {
    background: #d40511;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.dhl-proceed-button:hover {
    background: #a00410;
}

/* Quote Options */
.dhl-quote-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dhl-quote-option {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center;
}

.dhl-quote-option h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.dhl-quote-option button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.dhl-quote-option button:hover {
    background: #0056b3;
}

/* Error Messages */
.dhl-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

/* Checkout Form */
#dhl-checkout-form {
    max-width: 800px;
    margin: 0 auto;
}

.dhl-checkout-section {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dhl-checkout-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #d40511;
    padding-bottom: 10px;
}

.dhl-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.dhl-form-field {
    display: flex;
    flex-direction: column;
}

.dhl-form-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.dhl-form-field input,
.dhl-form-field select,
.dhl-form-field textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dhl-form-field input:focus,
.dhl-form-field select:focus,
.dhl-form-field textarea:focus {
    outline: none;
    border-color: #d40511;
}

.dhl-form-field small {
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

/* Stripe Card Element */
#card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Payment Summary */
.dhl-payment-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dhl-payment-summary h4 {
    margin: 0 0 15px 0;
}

.dhl-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.dhl-summary-row.total {
    font-weight: bold;
    font-size: 20px;
    color: #d40511;
    border-bottom: none;
    margin-top: 10px;
}

/* Submit Button */
.dhl-submit-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
}

.dhl-submit-button:hover {
    background: #218838;
}

.dhl-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
#checkout-errors {
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

#checkout-success {
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .dhl-form-row {
        grid-template-columns: 1fr;
    }
    
    .dhl-quote-options {
        grid-template-columns: 1fr;
    }
}
