/* --- Main Form Styles --- */
.infineat-main-form-instance .infineat-plz-container {
    background-color: #f6fbf9;
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.infineat-plz-container .infineat-plz-icon-text { display: flex; align-items: center; gap: 10px; color: #303030; }
.infineat-plz-container .infineat-plz-title { font-size: 1.2em; font-weight: bold; margin: 0; }
.infineat-plz-container .infineat-plz-subtitle { font-size: 0.9em; color: #666; margin: 0; }
.infineat-plz-container .infineat-plz-error-msg { color: red; font-weight: bold; margin-top: 10px; }
.infineat-plz-container .infineat-plz-form-wrapper { display: flex; align-items: center; gap: 20px; }
.infineat-plz-container .otp-input { display: flex; gap: 10px; }

/* --- General Input/Button Styles --- */
.infineat-plz-container .otp-input input {
    width: 50px; height: 60px; text-align: center; font-size: 1.5em;
    border: 1px solid #ccc; border-radius: 8px; background-color: #ffffff; color: #303030;
    padding: 0; box-shadow: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.infineat-plz-container .otp-input input:focus {
    border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); outline: none;
}
.infineat-plz-container .infineat-plz-button {
    padding: 15px 30px; background-color: #1e1e1e; color: #ffffff;
    border: none; border-radius: 25px; cursor: pointer; font-size: 1em; font-weight: bold;
    line-height: normal; height: auto; transition: background-color 0.3s;
}
.infineat-plz-container .infineat-plz-button:hover { background-color: #333333; color: #ffffff; }


/* --- Custom Modal Styles --- */
.infineat-open-modal-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1c61e7;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.infineat-open-modal-btn:hover { background-color: #333; }

.infineat-modal-overlay,
.infineat-modal {
    display: none !important;
}

.infineat-modal-overlay.active,
.infineat-modal.active {
    display: block !important;
}

.infineat-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.infineat-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    width: 90%; max-width: 500px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.infineat-modal-overlay.active, .infineat-modal.active {
    opacity: 1; visibility: visible;
}
.infineat-modal.active { transform: translate(-50%, -50%) scale(1); }

.infineat-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; border-bottom: 1px solid #eee;
}
.infineat-modal-title { font-size: 1.2em; font-weight: 600; margin: 0; }
.infineat-modal-close {
    background: transparent; border: none; font-size: 28px;
    cursor: pointer; color: #888; line-height: 1; padding: 0;
}
.infineat-modal-content { padding: 25px; max-height: 70vh; overflow-y: auto; }
.infineat-modal .infineat-plz-container { padding: 0; margin: 0; max-width: none; border: none; box-shadow: none; }
.infineat-modal-divider { border: 0; border-top: 1px solid #e0e0e0; margin: 30px 0; }
.infineat-locations-list h4 { margin-top: 0; margin-bottom: 15px; font-size: 1.1em; }
.infineat-locations-list ul { list-style: none; padding: 0; margin: 0; }
.infineat-locations-list li a {
    display: block; padding: 12px 15px; text-decoration: none;
    color: #333; border-radius: 5px; transition: background-color 0.2s; font-weight: 500;
}
.infineat-locations-list li a:hover { background-color: #f5f5f5; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .infineat-plz-container .infineat-plz-form-wrapper { flex-direction: column; }
    .infineat-plz-container .otp-input input { width: 40px; height: 50px; font-size: 1.2em; }
}