/* PS JedanKlik popup styles */
.ps-jedanklik-popup {
    font-family: inherit;
}

.ps-jedanklik-popup .ps-popup-content {
    max-height: 90vh;
    overflow-y: auto;
}

.ps-jedanklik-popup .ps-popup-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.ps-jedanklik-popup .ps-popup-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
}

.ps-jedanklik-popup .ps-popup-content input,
.ps-jedanklik-popup .ps-popup-content textarea,
.ps-jedanklik-popup .ps-popup-content select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
    box-sizing: border-box;
}

.ps-jedanklik-popup .ps-popup-content input:focus,
.ps-jedanklik-popup .ps-popup-content textarea:focus,
.ps-jedanklik-popup .ps-popup-content select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.ps-jedanklik-popup .ps-popup-content .ps-customer-type-selector {
    border: 1px solid #e0e0e0;
    padding: 12px;
    background-color: #f9f9f9;
}

.ps-jedanklik-popup .ps-popup-content .ps-customer-type-selector label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.ps-jedanklik-popup .ps-popup-content .ps-customer-type-selector input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.ps-jedanklik-popup .ps-popup-content .ps-individual-fields,
.ps-jedanklik-popup .ps-popup-content .ps-legal-fields {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}


.ps-jedanklik-popup .ps-popup-content .ps-jk-summary {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    padding: 12px;
    text-align: center;
    color: #2e7d32;
}

.ps-jedanklik-popup .ps-popup-content .btn {
    padding: 12px 24px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    min-width: 140px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-jedanklik-popup .ps-popup-content .btn-success {
    background-color: #28a745;
    color: white;
    width: 49.5%;
    float: left;
    margin-right: 1%;
}

.ps-jedanklik-popup .ps-popup-content .btn-success:hover {
    background-color: #218838;
}

.ps-jedanklik-popup .ps-popup-content .btn-success:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.ps-jedanklik-popup .ps-popup-content .btn-secondary {
    background-color: #6c757d;
    color: white;
    width: 49.5%;
}

.ps-jedanklik-popup .ps-popup-content .btn-secondary:hover {
    background-color: #5a6268;
}

/* Button styling for the main trigger button */
.ps-jedanklik-request-btn {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: white !important;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .ps-jedanklik-popup .ps-popup-content {
        margin: 2vw auto;
        max-width: 95%;
        padding: 20px;
    }
    
    .ps-jedanklik-popup .ps-popup-content h3 {
        font-size: 20px;
    }
    
    .ps-jedanklik-popup .ps-popup-content .ps-customer-type-selector > div {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation */
.ps-jedanklik-popup {
    animation: ps-fadeIn 0.2s ease-out;
}

.ps-jedanklik-popup .ps-popup-content {
    animation: ps-slideIn 0.3s ease-out;
}

@keyframes ps-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ps-slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.ps-jedanklik-popup .label, label {
    text-align: left;
}

/* Proforma checkbox styling */
.ps-jedanklik-popup .ps-legal-fields div:has(.ps-jk-needs-proforma) {
    transition: all 0.2s ease;
}

.ps-jedanklik-popup .ps-legal-fields div:has(.ps-jk-needs-proforma):hover {
    background-color: #e3f2fd !important;
    border-color: #90caf9 !important;
}

.ps-jedanklik-popup #ps-jk-proforma-checkbox {
    width: auto !important;
    height: auto !important;
}

.ps-jedanklik-popup label[for="ps-jk-proforma-checkbox"] {
    user-select: none;
}

/* Success/Error popup styles */
.ps-jk-success-popup, .ps-jk-error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: inherit;
}

.ps-jk-success-content, .ps-jk-error-content {
    background: white;
    padding: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: ps-successSlideIn 0.4s ease-out;
}

.ps-jk-success-content {
    border-top: 5px solid #28a745;
}

.ps-jk-error-content {
    border-top: 5px solid #28a745;
}

.ps-jk-success-icon, .ps-jk-error-icon {
    font-size: 23px;
    margin-bottom: 15px;
}

.ps-jk-success-icon {
    color: #28a745;
}

.ps-jk-error-icon {
    color: #dc3545;
}

.ps-jk-success-title, .ps-jk-error-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ps-jk-success-title {
    color: #28a745;
}

.ps-jk-error-title {
    color: #dc3545;
}

.ps-jk-success-message, .ps-jk-error-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ps-jk-success-close, .ps-jk-error-close {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
}

.ps-jk-success-close:hover, .ps-jk-error-close:hover {
    background-color: #207834;
}

@keyframes ps-successSlideIn {
    from { 
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.ps-jedanklik-request-div {
    width: 100%;
}