/* OVZA Company Checkout CSS - Matching Notary v3 Style */

/* === CONTAINER === */
.container-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === LEFT COLUMN === */
.left-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* === CHECKOUT SECTIONS === */
.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.checkout-section h2.checkout-title {
    color: #148a64;
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
}

.checkout-section h3.section-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.checkout-section .section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* === FORM ELEMENTS === */
.countrydata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.custom-dropdown,
.companydata,
.emaildata {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.container-checkout label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.container-checkout label span {
    color: #d63031;
}

.container-checkout input[type="text"],
.container-checkout input[type="email"],
.container-checkout select,
.container-checkout .select2-selection--single {
    padding: 10px 12px;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

/* Fix double arrow on select dropdowns */
.container-checkout select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Hide default arrow in IE */
.container-checkout select::-ms-expand {
    display: none;
}

.container-checkout input[type="text"]:focus,
.container-checkout input[type="email"]:focus,
.container-checkout select:focus {
    outline: none;
    border-color: #148a64 !important;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

/* === PRICING CARDS (Package Selection) === */
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
    background: #fff;
    padding: 20px;
    position: relative;
}

/* Add padding when free notary badge is shown */
.pricing-card:has(.free-notary-badge[style*="display: block"]),
.pricing-card:has(.free-notary-badge:not([style*="display: none"])) {
    padding-top: 35px;
}

.pricing-card:hover {
    border-color: #148a64;
}

.pricing-card.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.pricing-card input[type="radio"] {
    display: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 0;
    height: auto;
}

.packagedata {
    display: flex;
    align-items: center;
    gap: 15px;
}

.package-title,
.pricing-card h2 {
    margin: 0;
    font-size: 17px !important;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.p-price {
    font-size: 20px;
    font-weight: 700;
    color: #148a64;
    background: none;
    padding: 0;
    border-radius: 0;
}

.p-price:empty {
    display: none;
}

.container-checkout .pricing-card p.pdata {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.4;
}

.pricing-card hr,
.separator2 {
    display: none;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.features-list:before {
    display: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    padding: 0;
}

.features-list li i {
    color: #148a64;
}

.features-list li span.fa-li {
    position: static;
    width: auto;
}

/* === RIGHT COLUMN - ORDER SUMMARY === */
.total-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.total-summary h2.checkout-title {
    margin: 0 0 5px;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.total-summary > p {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

/* === SUMMARY BOX (lastcheck) === */
.lastcheck {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
}

.lastcheck p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
    border-bottom: none;
}

.lastcheck p strong {
    color: #666;
    font-weight: 400;
}

.lastcheck p span {
    font-weight: 600;
    color: #333;
}

.lastcheck p.summary-row {
    display: flex;
    justify-content: space-between;
}

.lastcheck p.subtotal-row {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.lastcheck p.discount-row .discount-amount {
    color: #148a64 !important;
    font-weight: 600;
}

.lastcheck p.total-row {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 18px;
}

.lastcheck p.total-row .price {
    color: #148a64 !important;
    font-size: 22px;
    font-weight: 700;
}

#display-country,
#display-company-name {
    font-weight: 600;
    color: #333;
}

#total-price {
    color: #148a64;
    font-weight: 700;
}

/* === COUPON SECTION === */
.coupon-section {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: #148a64;
}

.coupon-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.coupon-btn:not(.remove) {
    background: #148a64;
    color: #fff;
}

.coupon-btn:not(.remove):hover {
    background: #0f6d4d;
}

.coupon-btn.remove {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.coupon-btn.remove:hover {
    background: #e9e9e9;
}

.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.coupon-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.coupon-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* === PAYMENT SECTION === */
.payment-section {
    margin-bottom: 20px;
}

.payment-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s;
    background: #fff;
}

.payment-option:hover {
    border-color: #148a64;
}

.payment-option.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.payment-option input[type="radio"] {
    display: none;
}

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

.payment-option .option-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.payment-option .payment-icon {
    height: 24px !important;
    width: auto !important;
}

/* === PAY BUTTONS === */
.pay-buttons {
    margin-bottom: 15px;
}

.pay-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.pay-btn:last-child {
    margin-bottom: 0;
}

.pay-btn.card-btn {
    background: #148a64;
    color: #fff;
}

.pay-btn.card-btn:hover:not(:disabled) {
    background: #0f6d4d;
}

.pay-btn.crypto-btn {
    background: #148a64;
    color: #fff;
}

.pay-btn.crypto-btn:hover:not(:disabled) {
    background: #0f6d4d;
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pay-btn .btn-text {
    font-size: 16px;
}

.pay-btn .btn-price {
    font-size: 18px;
    font-weight: 700;
}

/* === PAYMENT ERROR === */
.payment-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* === TRUST SECTION === */
.trust-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.trust-section .trust-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-section .trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.trust-section .trust-logos img {
    height: 40px !important;
    width: auto !important;
    opacity: 0.8;
}

.trust-section .trust-logos a {
    display: flex;
    gap: 10px;
}


/* === NOTARY ADD-ON (Compact) === */
.notary-addon-compact {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px 20px;
    margin-bottom: 20px;
    position: relative;
}

.notary-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notary-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.notary-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #148a64;
    cursor: pointer;
}

.notary-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.notary-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #148a64;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notary-price-tag {
    font-size: 18px;
    font-weight: 700;
    color: #148a64;
}

.notary-price-tag small {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-left: 2px;
}

.notary-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 0 30px;
    line-height: 1.4;
}

.notary-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.notary-qty-controls {
    display: flex;
    align-items: center;
}

.notary-qty-controls .qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #148a64;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #148a64;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.notary-qty-controls .qty-btn:first-of-type {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.notary-qty-controls .qty-btn:last-of-type {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.notary-qty-controls .qty-btn:hover:not(:disabled) {
    background: #148a64;
    color: #fff;
}

.notary-qty-controls .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.notary-qty-controls input {
    width: 40px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    text-align: center;
    border: 2px solid #148a64 !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8fff9 !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.notary-qty-controls input::-webkit-outer-spin-button,
.notary-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.notary-qty-controls input:focus {
    outline: none;
}

/* === FREE NOTARY BADGE === */
.free-notary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #148a64, #0f6d4d);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.free-notary-feature i.fa-gift {
    color: #148a64;
}

.free-notary-text {
    color: #148a64;
}

/* === FREE BANK BADGE === */
.free-bank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* When both badges are present, stack them */
.pricing-card:has(.free-notary-badge[style*="display: block"]) .free-bank-badge {
    top: 40px;
}

.free-bank-feature i.fa-university {
    color: #2196f3;
}

.free-bank-text {
    color: #2196f3;
}

/* Free bank summary line */
.free-bank-line {
    color: #2196f3;
}

.free-bank-value {
    color: #2196f3;
    font-weight: 600;
}

/* Notary summary line */
#notary-summary-line {
    display: flex;
    justify-content: space-between;
}

#notary-price {
    color: #148a64;
    font-weight: 600;
}

/* === BANK TRANSFER SECTION === */
.bank-transfer {
    margin-top: 20px;
}

.bank-transfer h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

.bank-transfer select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
    background: #fff;
}

#bank-details {
    margin-top: 15px;
    font-size: 14px;
    color: #444;
}

.reference-code {
    color: #d63031;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
}

#confirm-transfer {
    margin-top: 20px;
    background: #148a64;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#confirm-transfer:hover {
    background: #0f6d4d;
}

#send-proof-button {
    margin-top: 10px;
    background: #148a64;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#send-proof-button:hover {
    background: #0f6d4d;
}

.upload-success {
    color: #148a64;
    font-weight: 500;
}

/* === CRYPTO SECTION === */
.crypto-payment-section {
    margin-bottom: 15px;
}

.crypto-loading {
    text-align: center;
    padding: 15px;
}

.crypto-loading p {
    margin: 0;
    color: #666;
}

.crypto-error {
    color: #d63031;
    margin-top: 10px;
    font-size: 14px;
}

/* === CREDIT CARD SECTION === */
.credit-card-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

#wc-checkout-form-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    opacity: 0;
}

/* === SPINNER === */
#loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #148a64;
}

/* === SELECT2 OVERRIDES === */
.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff;
}

.select2-container--open .select2-dropdown {
    border-color: #148a64;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-results__option {
    font-size: 14px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #148a64 !important;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 9px 35px 9px 12px;
    line-height: 22px;
    color: #333;
}

/* Hide Select2 default arrow completely to prevent double arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Custom dropdown arrow */
.select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.select2-container--open .select2-dropdown {
    border-color: #148a64;
}

.select2-option-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .container-checkout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .total-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .countrydata {
        grid-template-columns: 1fr;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .total-summary {
        padding: 20px;
    }
    
    .notary-addon-compact {
        padding: 15px;
    }
    
    .notary-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .packagedata {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
