/* Purchase Stripe-style Checkout CSS */

/* CSS Variables for CoinTracking Brand Colors & Typography */
:root {
    --cointracking-light-blue: #3182ce;
    --cointracking-blue: #2c5aa0;
    --text-dark: #1a1f36;
    --text-medium: #6b7c93;
    --text-light: #a3acb9;
    --background-light: #f6f9fc;
    --background-white: #ffffff;
    --border-light: #e6ebf1;
    --border-medium: #d1d5db;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    
    /* Typography Scale */
    --font-size-h1: 24px;
    --font-size-h2: 18px;
    --font-size-h3: 16px;
    --font-size-body-large: 15px;
    --font-size-body: 14px;
    --font-size-body-small: 13px;
    --font-size-caption: 12px;
    
    /* Font Weights */
    --font-weight-bold: 600;
    --font-weight-medium: 500;
    --font-weight-regular: 400;
    
    /* Line Heights */
    --line-height-heading: 1.3;
    --line-height-body: 1.4;
    --line-height-compact: 1.2;
}

select, input[type="text"], input[type="email"] {
    padding: 0.5rem 0.75rem;
    /* font-size: 1rem; */
    /* border: 1px solid #ced4da;
    border-radius: 0.375rem; */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Enhanced Button Styling */
.btn {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Main Header */
.main-header-new {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    margin-bottom: 0;
}

.main-header-new__title {
    text-align: center;
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin: 0;
    line-height: var(--line-height-heading);
}

/* Stripe Checkout Container */
.stripe-checkout-container {
    min-height: calc(100vh - 80px);
    padding: 40px;
}

.checkout-container {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-light);
    transition: all 0.4s ease;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 160px);
}

/* Left Column - Order Summary */
.order-summary-section {
    background: transparent;
    padding: 40px;
    border-right: 1px solid var(--border-light);
}

.order-summary-content {
    max-width: 400px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-body);
}

.breadcrumb-link {
    color: var(--cointracking-light-blue);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: 0;
}

.breadcrumb-link:hover {
    color: var(--cointracking-blue);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: var(--font-size-caption);
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: var(--font-weight-bold);
}

/* Payment Info */
.payment-info-section {
    margin-bottom: 20px;
}

.payment-to {
    font-size: var(--font-size-body);
    color: var(--text-medium);
    margin-bottom: 8px;
    font-weight: var(--font-weight-regular);
}

.total-amount {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    line-height: var(--line-height-heading);
}

/* Line Items */
.line-items {
    margin-bottom: 16px;
}

.line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f6f9fc;
    font-size: var(--font-size-body);
}

.line-item:last-child {
    border-bottom: none;
}

.item-name {
    color: var(--text-dark);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
}

.item-price {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

/* Subtotal */
.subtotal-section {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
}

.subtotal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-body);
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-body);
}

/* Final Total */
.final-total {
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    line-height: var(--line-height-body);
}

.total-price {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    line-height: var(--line-height-body);
}

/* Subtotal Section */
.subtotal-section {
    margin-bottom: 12px;
}

.subtotal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: var(--font-size-body);
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

/* Added Services */
.added-services-section {
    margin-bottom: 12px;
}

.added-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: var(--font-size-body);
    color: var(--text-dark);
}

.added-service-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.added-service-name {
    font-weight: var(--font-weight-medium);
}

.added-service-price {
    font-weight: var(--font-weight-medium);
}

.btn-remove-service {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    font-size: 12px;
}

.btn-remove-service:hover {
    color: var(--error-color);
}

/* Additional Services Section */
.additional-services-section {
    overflow: hidden;
    margin-bottom: 20px;
}

.additional-services-section .section-header {
    padding-bottom: 16px;
}

.additional-services-section .section-title {
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    color: var(--text-medium);
}

.service-item {
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-name {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    line-height: var(--line-height-body);
    margin: 0;
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.service-price {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.service-description {
    font-size: var(--font-size-body-small);
    color: var(--text-medium);
    line-height: var(--line-height-body);
    margin-bottom: 4px;
}

.service-add-btn {
    color: var(--cointracking-light-blue);
    border: 1px solid var(--cointracking-light-blue);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    /* width: 100%; */
}

.service-add-btn:hover {
    background: var(--cointracking-light-blue);
    color: white;
    transform: translateY(-1px);
}

.service-remove-btn { 
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    /* width: 100%; */
}

.service-remove-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.service-add-btn i {
    font-size: 10px;
}

/* Added Services in Order Summary */
.added-services-section {
    margin-bottom: 20px;
}

.added-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f6f9fc;
    font-size: 14px;
}

.added-service-item:last-child {
    border-bottom: none;
}

.added-service-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.added-service-name {
    color: var(--text-dark);
    font-weight: 500;
}

.btn-remove-service {
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-remove-service:hover {
    color: var(--error-color);
    background: rgba(231, 76, 60, 0.1);
}

.added-service-price {
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 8px;
}

/* Right Column - Form */
.form-section {
    background: transparent;
    padding: 40px;
}

.form-content {
    max-width: 400px;
    margin: 0 auto;
}

/* Form Groups */
.form-group-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: var(--line-height-heading);
}

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

.form-label {
    display: block;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: #374151;
    margin-bottom: 8px;
    line-height: var(--line-height-body);
    text-align: left;
    font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.form-control, .form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: var(--font-size-body-large);
    transition: all 0.15s ease;
    line-height: 1.5;
    font-weight: var(--font-weight-regular);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 36px;
    box-sizing: border-box;
    background-color: white;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--cointracking-light-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: #9ca3af;
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Billing Details Toggle */
.billing-details-toggle {
    margin-top: 4px;
    margin-bottom: 4px;
}

.btn-expand-billing {
    background: none;
    border: none;
    color: var(--cointracking-light-blue);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: var(--line-height-body);
}

.btn-expand-billing:hover {
    color: var(--cointracking-blue);
}

.btn-expand-billing i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-expand-billing.expanded i {
    transform: rotate(45deg);
}

.billing-details-fields {
    margin-top: 4px;
    padding-top: 4px;
    animation: slideDown 0.3s ease-out;
}

.billing-details-fields .form-group:first-child {
    margin-top: 0;
    margin-bottom: 12px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact Form Block */
.compact-form-block {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    width: fit-content;
}

.segmented-control-option {
    padding: 12px 24px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-light);
    min-width: 100px;
    text-align: center;
}

.segmented-control-option:last-child {
    border-right: none;
}

.segmented-control-option:hover:not(.active) {
    background: #f8fafc;
}

.segmented-control-option.active {
    background: var(--cointracking-light-blue);
    color: white;
}

.segmented-control input[type="radio"] {
    display: none;
}

.compact-input {
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.compact-input:last-child {
    border-bottom: none !important;
}

.compact-input:focus {
    border-color: var(--cointracking-light-blue) !important;
    box-shadow: inset 0 0 0 1px var(--cointracking-light-blue) !important;
    z-index: 1;
    position: relative;
}

.compact-row {
    display: flex;
}

.compact-row .compact-input {
    border-right: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.compact-row .compact-input:last-child {
    border-right: none !important;
}

/* Payment Methods */
.payment-methods-section {
    margin-top: 32px;
}

.payment-methods-container {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.payment-methods-container .payment-method-card {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background-color: transparent !important;
    transition: all 0.15s ease;
    box-shadow: none !important;
    overflow: visible !important;
}

.payment-methods-container .payment-method-card:last-child {
    border-bottom: none !important;
}

.payment-methods-container .payment-method-card:hover {
    background-color: rgba(249, 250, 251, 0.8) !important;
    border-color: #f3f4f6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.payment-methods-container .payment-method-card.selected {
    background-color: transparent !important;
    box-shadow: none !important;
}

.payment-method-row {
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 16px 20px;
    border-radius: 0;
}

.payment-method-row:hover {
    background-color: inherit;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-method-radio {
    margin: 0;
    accent-color: var(--cointracking-light-blue);
    width: 18px;
    height: 18px;
}

.payment-method-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.payment-method-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-medium);
}

.payment-method-icon i {
    font-size: 18px;
    color: var(--text-medium);
}

.payment-method-icon .icon-text {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.payment-method-label {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular) !important;
    color: var(--text-dark);
    margin-bottom: 0;
    cursor: pointer;
    line-height: var(--line-height-body);
}

.payment-methods-container .payment-method-label {
    font-weight: 400 !important;
    font-size: 14px !important;
}

.payment-discount {
    display: inline-block;
    background: #d4f4dd;
    color: #1a7f37;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

.payment-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.payment-icons img {
    height: 16px;
    width: 24px;
    opacity: 0.85;
    object-fit: contain;
}

.payment-icons i {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 2px;
}

/* Payment Details Panel */
.payment-details {
    border-top: 1px solid #f0f2f5;
    padding: 20px 16px;
    background: transparent !important;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.payment-description {
    font-size: var(--font-size-body-small);
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: var(--line-height-body);
    font-weight: var(--font-weight-regular);
}

/* Payment Form Fields */
.payment-form-fields {
    margin-bottom: 24px;
}

.payment-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.payment-form-row .form-control {
    flex: 1;
}

/* Card Input Container */
.card-input-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-input-container:hover {
    border-color: #9ca3af;
}

.card-input-container:focus-within {
    border-color: var(--cointracking-light-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Card Number Input */
.card-number-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAzMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjIwIiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNNy44IDEwLjZIMTIuNEMxMy41IDEwLjYgMTQuMiA5LjMgMTMuOCA4LjJDMTMuNCA3LjEgMTIuMiA2LjQgMTEuMSA2LjhIOC42QzcuNiA2LjggNi45IDcuNSA2LjkgOC41VjEyLjVDNi45IDEzLjUgNy42IDE0LjIgOC42IDE4LjJIMTIuNEMxMy41IDE0LjIgMTQuMiAxMi45IDEzLjggMTEuOEMxMy40IDEwLjcgMTIuMiAxMCAxMS4xIDEwLjRINy44WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 16px;
    padding-right: 50px;
    border-bottom: 1px solid #e5e7eb !important;
    height: auto !important;
}

.card-number-input:focus {
    outline: none;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Card Bottom Row */
.card-bottom-row {
    display: flex;
}

.card-expiry-input, .card-cvc-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    flex: 1;
    height: auto !important;
}

.card-expiry-input {
    border-right: 1px solid #e5e7eb !important;
}

.card-expiry-input:focus, .card-cvc-input:focus {
    outline: none;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Enhanced Stripe Card Element */
#card-element {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease !important;
    font-size: 15px !important;
}

#card-element:hover {
    border-color: #9ca3af !important;
}

#card-element.StripeElement--focus {
    border-color: var(--cointracking-light-blue) !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

#card-element.StripeElement--invalid {
    border-color: var(--error-color) !important;
}

#card-element.StripeElement--complete {
    border-color: var(--success-color) !important;
}

/* Credit Card Form Specific Styling */
.payment-form-row .form-group {
    margin-bottom: 0;
}

.payment-form-row .form-group:not(:last-child) {
    margin-right: 0;
}


/* Terms Checkbox in Payment Methods */
.payment-terms {
    margin: 14px 0 16px 0;
}

.custom-checkbox {
    display: inline-block;
    padding: 0;
    font-size: var(--font-size-body-small);
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
}

.custom-checkbox:hover {
    background-color: transparent;
    border-color: transparent;
}

.custom-checkbox input[type="checkbox"] {
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: var(--cointracking-light-blue);
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.terms-link {
    color: inherit;
    text-decoration: underline dotted;
    font-weight: normal;
    padding: 0;
    margin: 0;
    display: inline;
    line-height: inherit;
    font-size: inherit;
    word-spacing: normal;
    letter-spacing: normal;
    text-decoration-skip-ink: none;
    text-underline-offset: 2px;
}

.terms-link:hover {
    text-decoration: underline dotted;
    color: inherit;
}

/* Payment Button */
.btn-pay {
    width: 100%;
    background: var(--cointracking-light-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: var(--line-height-body);
}

.btn-pay:hover:not(:disabled) {
    background: var(--cointracking-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.btn-pay:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    color: #9ca3af;
}

/* Blue Button Styling */
.blue_button {
    background-color: var(--cointracking-light-blue);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.blue_button:hover {
    background-color: var(--cointracking-blue);
    transform: translateY(-1px);
}

/* Error and Validation States */
.missing_country,
.missing_tos {
    background-color: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 14px;
}

.red {
    color: var(--error-color);
}

/* .form-control.is-invalid,
.compact-input.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

.form-control.is-valid,
.compact-input.is-valid {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1) !important;
} */

.invalid-feedback {
    display: block;
    font-size: var(--font-size-caption);
    color: var(--error-color);
    margin-top: 4px;
    line-height: 1.4;
}

.valid-feedback {
    display: block;
    font-size: var(--font-size-caption);
    color: var(--success-color);
    margin-top: 4px;
    line-height: 1.4;
}

.validation-message {
    font-size: var(--font-size-caption);
    margin-top: 4px;
    line-height: 1.4;
    display: none;
}

.validation-message.error {
    color: var(--error-color);
    display: block;
}

.validation-message.success {
    color: var(--success-color);
    display: block;
}

/* Card input container validation states */
/* .card-input-container.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

.card-input-container.is-valid {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1) !important;
} */

/* Radio Button Styling */
input[type="radio"] {
    accent-color: var(--cointracking-light-blue);
}

/* Responsive Design */
@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .order-summary-section,
    .form-section {
        border-right: none;
        padding: 24px;
    }
    
    .order-summary-content,
    .form-content {
        max-width: 100%;
    }
    
    .total-amount {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .checkout-grid {
        padding: 0 16px;
    }
    
    .order-summary-section,
    .form-section {
        padding: 20px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .payment-method-row {
        padding: 12px;
    }
    
    .payment-details {
        padding: 16px;
    }
    
    .payment-form-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Additional Services List Styling */
.content-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container-item {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.container-item table {
    width: 100%;
    border-collapse: collapse;
}

.container-item td {
    padding: 8px;
    vertical-align: top;
}

.addon {
    font-weight: 600;
    color: var(--text-dark);
}

.addon_nice_button {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    background-color: #f8f9fa !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 0.375rem !important;
    color: inherit !important;
    font-weight: normal !important;
    min-width: auto !important;
    box-shadow: none !important;
    transition: none !important;
    padding-bottom: 2px !important;
}

.addon_nice_button:hover {
    background-color: #f8f9fa !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Hide elements by default */
.additional_services {
    display: none;
}

/* Table styling for extracted content */
.fancy {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.fancy th,
.fancy td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.wrapper {
    font-size: 14px;
}

h5 {
    margin: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.contentbox l {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#card-errors, .card-errors {
    color: var(--error-color);
}

/* Country Select Specific Fixes */
#purchase_country_individual, 
#purchase_country_company, 
#purchase_country {
    line-height: 1.3;
    vertical-align: middle;
}

#purchase_country_individual, 
#purchase_country_company {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 8px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 36px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}