/**
 * OVZA Notary Checkout CSS - Version 3
 * Option B Style Layout
 */

/* Override Elementor default img styles */
.ovza-notary-checkout-container img {
    height: auto;
    max-width: 100%;
}

.ovza-notary-checkout-container {
    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 */
.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-header h2 {
    color: #148a64;
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
}

.checkout-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* Sections */
.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.checkout-section h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.section-desc {
    color: #666;
    font-size: 14px;
    margin: -10px 0 15px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group label .required {
    color: #d63031;
}

.form-group input {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #148a64;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

/* Package Cards */
.package-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.package-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
    background: #fff;
}

.package-card:hover {
    border-color: #148a64;
}

.package-card.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.package-card input[type="radio"] {
    display: none;
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.package-card.selected .radio-circle {
    border-color: #148a64;
}

.package-card.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: #148a64;
    border-radius: 50%;
}

.package-info h4 {
    margin: 0;
    font-size: 17px;
    color: #333;
}

.package-price {
    font-size: 22px;
    font-weight: 700;
    color: #148a64;
}

.price-unit {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}

.package-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.package-features li i {
    color: #148a64;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 180px;
    margin: 0 auto;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #148a64;
    background: #fff;
    color: #148a64;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:first-child {
    border-radius: 10px 0 0 10px;
}

.qty-btn:last-child {
    border-radius: 0 10px 10px 0;
}

.qty-btn:hover:not(:disabled) {
    background: #148a64;
    color: #fff;
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-selector input {
    width: 70px;
    height: 50px;
    border: 2px solid #148a64;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    background: #f8fff9;
}

.quantity-selector input:focus {
    outline: none;
}

/* Mini Quantity Selector (in Summary Line) */
.quantity-selector-mini {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-selector-mini .qty-btn-mini {
    width: 32px;
    height: 32px;
    border: 2px solid #148a64;
    background: #fff;
    color: #148a64;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.quantity-selector-mini .qty-btn-mini:first-child {
    border-radius: 6px 0 0 6px;
}

.quantity-selector-mini .qty-btn-mini:last-child {
    border-radius: 0 6px 6px 0;
}

.quantity-selector-mini .qty-btn-mini:hover:not(:disabled) {
    background: #148a64;
    color: #fff;
}

.quantity-selector-mini .qty-btn-mini:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-selector-mini input[type="number"] {
    width: 40px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border: 2px solid #148a64 !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8fff9 !important;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.quantity-selector-mini input[type="number"]::-webkit-outer-spin-button,
.quantity-selector-mini input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector-mini input:focus {
    outline: none;
}

/* Right Column - Order Summary */
.checkout-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.order-summary h2 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #333;
}

.summary-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Summary Details */
.summary-details {
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-line .label {
    color: #666;
}

.summary-line .value {
    font-weight: 600;
    color: #333;
}

.summary-line.discount-line .value {
    color: #148a64;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.summary-line.total-line {
    padding-top: 12px;
    font-size: 18px;
}

.summary-line.total-line .value {
    color: #148a64;
    font-size: 22px;
}

/* Coupon Section */
.coupon-section {
    margin-bottom: 20px;
}

.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 {
    background: #d4edda;
    color: #155724;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Payment Section */
.payment-section {
    margin-bottom: 20px;
}

.payment-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
}

.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;
}

.payment-option:hover {
    border-color: #148a64;
}

.payment-option.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.payment-option input {
    display: none;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.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;
}

.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;
}

.btn-price {
    font-size: 18px;
}

/* 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-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.trust-logos img {
    height: 40px !important;
    width: auto !important;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .ovza-notary-checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-right {
        position: static;
    }
}

@media (max-width: 600px) {
    .ovza-notary-checkout-container {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-section {
        padding: 20px;
    }
}
