/* Car Rent Payment Plugin Styles */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    margin: 0;
}

.crp-logo {
    text-align: center;
    margin-bottom: 20px;
	padding-top: 50px;
}

.crp-logo img {
    max-width: 180px;
    height: auto;
}

.crp-container, .crp-embed-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.crp-title {
    text-align: center;
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.crp-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.crp-row {
    margin-bottom: 15px;
}

.crp-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.crp-input-group {
    position: relative;
}

.crp-input-group input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.crp-input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.crp-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.crp-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crp-btn:hover {
    transform: translateY(-2px);
}

.crp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.crp-btn-primary {
    background: #3498db;
    color: white;
}

.crp-btn-primary:hover {
    background: #2980b9;
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.crp-btn-success {
    background: #27ae60;
    color: white;
}

.crp-btn-success:hover {
    background: #219a52;
    box-shadow: 0 5px 15px rgba(39,174,96,0.3);
}

.crp-btn-secondary {
    background: #95a5a6;
    color: white;
}

.crp-btn-secondary:hover {
    background: #7f8c8d;
}

.crp-error-box {
    background: #fdf0f0;
    border: 1px solid #f5c6cb;
    color: #e74c3c;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.crp-booking-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.crp-booking-box h3 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 16px;
}

.crp-booking-box table {
    width: 100%;
    border-collapse: collapse;
}

.crp-booking-box td {
    padding: 8px 5px;
    font-size: 14px;
    vertical-align: top;
}

.crp-booking-box tr:not(:last-child) td {
    border-bottom: 1px solid #e9ecef;
}

.crp-payment-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.crp-payment-option:hover {
    border-color: #3498db;
    background: #f8fbfe;
}

.crp-payment-option.crp-selected {
    border-color: #27ae60;
    background: #f0fdf4;
}

.crp-payment-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.crp-payment-option label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
}

.crp-option-title {
    font-weight: 500;
    color: #333;
}

.crp-option-amount {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.crp-summary {
    background: #e8f5e9;
    padding: 18px;
    border-radius: 10px;
    margin: 20px 0;
}

.crp-summary table {
    width: 100%;
}

.crp-summary td {
    padding: 6px 0;
    font-size: 14px;
}

.crp-summary td:last-child {
    text-align: right;
}

.crp-total-row {
    border-top: 2px solid #27ae60;
}

.crp-total-row td {
    padding-top: 12px !important;
    font-size: 16px !important;
    color: #27ae60;
}

.crp-payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.crp-payment-logos img {
    height: 28px;
    opacity: 0.7;
}

.crp-secure-text {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 15px;
}

/* Spinner animation */
@keyframes crp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: crp-spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 520px) {
    .crp-container, .crp-embed-container { padding: 20px 15px; }
    .crp-payment-option label {
        flex-direction: column;
        align-items: flex-start;
    }
    .crp-option-amount { margin-top: 5px; }
}
