/* ICICI Bank Payment Button - Public Styles */

.pcpb-button-wrapper {
    margin: 20px 0;
}

.pcpb-payment-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pcpb-payment-button:hover {
    background-color: #005a87;
}

.pcpb-payment-button:active {
    background-color: #004768;
}

.pcpb-payment-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Modal Styles */
.pcpb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.pcpb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.pcpb-modal-content {
    position: relative;
    max-width: 680px;
    width: calc(100% - 40px);
    margin: 30px auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.pcpb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.pcpb-modal-close:hover {
    color: #333;
}

/* Modal Header with Logo */
.pcpb-modal-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
}

.pcpb-payment-logo {
    max-width: 180px;
    max-height: 70px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pcpb-modal-content h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* Form Grid Layout */
.pcpb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.pcpb-form-grid .pcpb-form-group {
    margin-bottom: 0;
}

.pcpb-form-grid .pcpb-form-group.pcpb-col-full {
    grid-column: 1 / -1;
}

/* Form Styles */
.pcpb-form-group {
    margin-bottom: 16px;
}

.pcpb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pcpb-form-group label .required {
    color: #e53935;
}

.pcpb-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dde1e7;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pcpb-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

.pcpb-form-group input[readonly] {
    background-color: #f0f2f5;
    color: #666;
    cursor: not-allowed;
    border-color: #e0e3e8;
}

.pcpb-form-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid #eef0f3;
    margin: 4px 0;
}

.pcpb-form-section-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin: 4px 0 0;
}

.pcpb-error {
    display: block;
    color: #d9534f;
    font-size: 12px;
    margin-top: 5px;
}

.pcpb-form-actions {
    margin-top: 20px;
}

.pcpb-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.1s;
}

.pcpb-submit-button:hover {
    opacity: 0.92;
}

.pcpb-submit-button:active {
    transform: scale(0.99);
}

.pcpb-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message Styles */
.pcpb-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.pcpb-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pcpb-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading Styles */
.pcpb-loading {
    text-align: center;
    padding: 40px 20px;
}

.pcpb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: pcpb-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes pcpb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pcpb-loading p {
    color: #666;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .pcpb-modal-content {
        margin: 10px;
        padding: 20px 16px;
        width: calc(100% - 20px);
        border-radius: 8px;
    }

    .pcpb-form-grid {
        grid-template-columns: 1fr;
    }

    .pcpb-form-grid .pcpb-form-group.pcpb-col-full {
        grid-column: 1;
    }

    .pcpb-modal-content h2 {
        font-size: 17px;
    }

    .pcpb-payment-button {
        width: 100%;
    }

    .pcpb-payment-logo {
        max-width: 140px;
        max-height: 55px;
    }
}

/* Payment Status Messages */
.pcpb-payment-status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    animation: pcpb-slide-down 0.5s ease-out;
}

.pcpb-payment-status-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.pcpb-message-success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.pcpb-message-error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

@keyframes pcpb-slide-down {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pcpb-payment-status-message {
        top: 10px;
        width: 95%;
        padding: 15px 20px;
    }
    
    .pcpb-payment-status-message p {
        font-size: 14px;
    }
}

.pcpb-message-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.pcpb-message-close:hover {
    opacity: 1;
}

.pcpb-payment-status-message {
    position: relative;
    padding-right: 50px;
}
