/* Payment Page Styles */
.hsb-payment-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hsb-payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.hsb-payment-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Appointment Summary */
.hsb-appointment-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hsb-appointment-summary h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.hsb-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.hsb-label {
    color: #666;
    font-size: 15px;
}

.hsb-value {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.hsb-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.hsb-summary-row.hsb-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.hsb-summary-row.hsb-total .hsb-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.hsb-summary-row.hsb-total .hsb-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c5f2d;
}

/* Payment Section */
.hsb-payment-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hsb-payment-section h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.hsb-payment-note {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 15px;
}

/* Payment Methods */
.hsb-payment-methods {
    margin-bottom: 25px;
}

.hsb-payment-method {
    margin-bottom: 15px;
}

.hsb-payment-method-label {
    display: block;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.hsb-payment-method-label:hover {
    border-color: #2c5f2d;
    background: #f9fafb;
}

.hsb-payment-radio {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hsb-payment-radio:checked+.hsb-payment-title {
    font-weight: 600;
    color: #2c5f2d;
}

.hsb-payment-method-label:has(.hsb-payment-radio:checked) {
    border-color: #2c5f2d;
    background: #f0f7f0;
}

.hsb-payment-title {
    font-size: 16px;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hsb-payment-title img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

/* Payment Box */
.hsb-payment-box {
    margin-top: 15px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.hsb-payment-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.hsb-payment-box input[type="text"],
.hsb-payment-box input[type="email"],
.hsb-payment-box input[type="tel"],
.hsb-payment-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
}

/* Submit Button */
.hsb-payment-submit {
    margin-top: 25px;
}

.hsb-payment-submit .hsb-btn-pay,
.hsb-payment-submit button {
    width: 100%;
    padding: 18px 32px;
    background: #6c6c6c !important;
    color: #fff !important;
    border: 3px solid #6c6c6c !important;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hsb-btn-pay:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hsb-btn-pay:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.hsb-btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: #ffffff;
    color: #2c5f2d !important;
    text-decoration: none !important;
    border-radius: 50px;
    border: 2px solid #2c5f2d;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hsb-btn-secondary:hover {
    background: #2c5f2d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
}

/* Retry Payment Button - Optimized for conversion with green psychology */
.hsb-btn-retry {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 18px 32px !important;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7a3f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.35) !important;
    text-transform: uppercase !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    outline: none !important;
}

.hsb-btn-retry::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s !important;
}

.hsb-btn-retry:hover::before {
    left: 100% !important;
}

.hsb-btn-retry:hover {
    background: linear-gradient(135deg, #234d24 0%, #2c5f2d 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.5) !important;
    color: #ffffff !important;
    border: none !important;
}

.hsb-btn-retry:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.4) !important;
    background: linear-gradient(135deg, #1e4520 0%, #234d24 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.hsb-btn-retry:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.2), 0 6px 20px rgba(44, 95, 45, 0.35) !important;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7a3f 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.hsb-secure-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* Messages */
.hsb-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

/* Success View */
.hsb-success-view {
    animation: hsb-fade-in 0.6s ease-out;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hsb-success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid #2c5f2d;
}

.hsb-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5f2d 0%, #46a049 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 30px;
    box-shadow: 0 8px 24px rgba(44, 95, 45, 0.25);
    animation: hsb-success-bounce 0.6s ease-out;
}

@keyframes hsb-success-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hsb-success-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.hsb-success-message {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.hsb-success-message strong {
    color: #2c5f2d;
    font-weight: 600;
}

/* Success Details Section */
.hsb-success-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin: 0 0 40px 0;
    text-align: left;
}

.hsb-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.hsb-success-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hsb-success-row:first-child {
    padding-top: 0;
}

.hsb-success-row span {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.hsb-success-row strong {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
}

/* Success Actions */
.hsb-success-actions {
    margin-top: 40px;
}

.hsb-btn-return {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7a3f 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(44, 95, 45, 0.3);
    letter-spacing: 0.5px;
    border: none;
}

.hsb-btn-return:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(44, 95, 45, 0.4);
    background: linear-gradient(135deg, #234d24 0%, #2c5f2d 100%);
}

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

/* Error Banner */
.hsb-error-banner {
    background: #fff5f5;
    border-left: 5px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
    animation: hsb-fade-in 0.4s ease-out;
}

.hsb-error-icon {
    background: #dc3545;
    color: #fff;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.hsb-error-content {
    color: #1a1a1a;
}

.hsb-error-content strong {
    display: block;
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 5px;
}

.hsb-error-content p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

@keyframes hsb-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hsb-success-view {
        padding: 20px 15px;
    }

    .hsb-success-card {
        padding: 40px 24px;
    }

    .hsb-success-card h2 {
        font-size: 26px;
    }

    .hsb-success-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
        margin-bottom: 24px;
    }

    .hsb-success-details {
        padding: 24px 20px;
    }

    .hsb-success-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 0;
    }

    .hsb-success-row strong {
        text-align: left;
    }

    .hsb-btn-return {
        padding: 14px 36px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
}