/* Modal overlay — covers the full viewport */
.ptr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ptr-modal-overlay.is-open {
    display: flex;
}

/* Modal box */
.ptr-modal-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
}

/* Close button */
.ptr-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.ptr-modal-close:hover {
    color: #000;
}

/* Heading */
.ptr-modal-box h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

/* Form layout */
#ptr-registration-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#ptr-registration-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.25rem;
}

#ptr-registration-form input[type="text"],
#ptr-registration-form input[type="email"],
#ptr-registration-form input[type="tel"] {
    padding: 0.5rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#ptr-registration-form input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Submit button */
#ptr-submit-btn {
    margin-top: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
}

#ptr-submit-btn:hover {
    background: #005a87;
}

#ptr-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Feedback messages */
#ptr-form-message {
    font-size: 0.9rem;
    min-height: 1.25rem;
}

#ptr-form-message.is-error {
    color: #c00;
}

#ptr-form-message.is-success {
    color: #1a7a1a;
}
