/* Lawn Soldier Quotes - Payment Page Styles */

.lsq-payment-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.lsq-payment-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.lsq-payment-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.lsq-payment-title {
    font-size: 28px;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.lsq-payment-subtitle {
    font-size: 16px;
    color: #646970;
    margin: 0;
}

/* Quote Summary */
.lsq-quote-summary {
    background: #f6f7f7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.lsq-quote-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1d2327;
}

.lsq-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.lsq-summary-line:last-child {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #2271b1;
}

.lsq-summary-label {
    font-size: 15px;
    color: #646970;
}

.lsq-summary-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.lsq-summary-total .lsq-summary-label {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.lsq-summary-total .lsq-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
}

/* Payment Form */
.lsq-payment-form {
    margin-bottom: 0;
}

.lsq-payment-section {
    margin-bottom: 30px;
}

.lsq-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px 0;
}

/* Stripe Elements Container */
.lsq-card-element-wrapper {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lsq-card-element-wrapper:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.lsq-card-element-wrapper.StripeElement--invalid {
    border-color: #d63638;
}

#card-element {
    min-height: 40px;
}

.lsq-card-errors {
    color: #d63638;
    font-size: 14px;
    margin: 10px 0 0 0;
    display: none;
}

.lsq-card-errors.show {
    display: block;
}

/* Security Message */
.lsq-security-message {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.lsq-security-icon {
    display: inline-block;
    margin-right: 8px;
    color: #2271b1;
    font-size: 18px;
}

.lsq-security-text {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
    margin: 0;
}

.lsq-security-text strong {
    color: #1d2327;
}

/* Terms Checkbox */
.lsq-terms-wrapper {
    margin: 25px 0;
}

.lsq-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lsq-terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lsq-terms-label {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
}

.lsq-terms-label a {
    color: #2271b1;
    text-decoration: none;
}

.lsq-terms-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.lsq-payment-submit {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lsq-payment-submit:hover:not(:disabled) {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.lsq-payment-submit:active:not(:disabled) {
    transform: translateY(0);
}

.lsq-payment-submit:disabled {
    background: #8c8f94;
    cursor: not-allowed;
    opacity: 0.6;
}

.lsq-button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lsq-spin 0.8s linear infinite;
}

.lsq-payment-submit.processing .lsq-button-spinner {
    display: inline-block;
}

.lsq-payment-submit.processing .lsq-button-text {
    opacity: 0.7;
}

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

/* Success Message */
.lsq-payment-success {
    background: #d5e8d4;
    border: 2px solid #00a651;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.lsq-success-icon {
    font-size: 48px;
    color: #00a651;
    margin-bottom: 15px;
}

.lsq-payment-success h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #00a651;
}

.lsq-payment-success p {
    margin: 10px 0;
    font-size: 16px;
    color: #1d2327;
    line-height: 1.6;
}

.lsq-success-details {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.lsq-success-detail-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.lsq-success-detail-line:last-child {
    border-bottom: none;
}

.lsq-detail-label {
    font-weight: 600;
    color: #646970;
}

.lsq-detail-value {
    color: #1d2327;
}

/* Error Messages */
.lsq-payment-error {
    background: #fcf0f1;
    border: 2px solid #d63638;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.lsq-payment-error p {
    margin: 0;
    color: #d63638;
    font-size: 15px;
    font-weight: 600;
}

/* Loading State */
.lsq-payment-loading {
    text-align: center;
    padding: 40px 20px;
}

.lsq-loader {
    border: 4px solid #f0f0f1;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: lsq-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.lsq-loading-text {
    font-size: 16px;
    color: #646970;
}

/* Back Button */
.lsq-back-button {
    display: inline-block;
    color: #2271b1;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.lsq-back-button:hover {
    color: #135e96;
    text-decoration: underline;
}

.lsq-back-button::before {
    content: "← ";
}

/* Stripe Branding */
.lsq-stripe-badge {
    text-align: center;
    padding: 20px 0 0 0;
    border-top: 1px solid #f0f0f1;
}

.lsq-stripe-text {
    font-size: 12px;
    color: #8c8f94;
}

.lsq-stripe-logo {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

/* Test Mode Banner */
.lsq-test-mode-banner {
    background: #fcf9e8;
    border: 2px solid #dba617;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.lsq-test-mode-banner p {
    margin: 0;
    font-size: 14px;
    color: #996800;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .lsq-payment-container {
        margin: 20px auto;
    }
    
    .lsq-payment-card {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .lsq-payment-title {
        font-size: 24px;
    }
    
    .lsq-summary-total .lsq-summary-value {
        font-size: 20px;
    }
    
    .lsq-payment-submit {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Admin - Charge Card Modal */
.lsq-charge-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.lsq-charge-modal-overlay.active {
    display: flex;
}

.lsq-charge-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lsq-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.lsq-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.lsq-modal-body {
    padding: 20px;
}

.lsq-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.lsq-payment-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.lsq-payment-status-badge.pending {
    background: #fcf9e8;
    color: #996800;
}

.lsq-payment-status-badge.card-saved {
    background: #d5e8d4;
    color: #006400;
}

.lsq-payment-status-badge.charged {
    background: #cfe2f3;
    color: #003d82;
}

.lsq-payment-status-badge.failed {
    background: #fcf0f1;
    color: #d63638;
}
