/* PP Registration Form - Modal & Form Styles */

/* Overlay */
.ppregform-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.ppregform-overlay--active {
    display: flex;
}

/* Modal */
.ppregform-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ppregform-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.ppregform-modal__close:hover {
    color: #000;
}

.ppregform-modal__content {
    padding: 0;
}

/* Banner */
.ppregform__banner {
    position: relative;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.ppregform__banner img {
    width: 100%;
    height: auto;
    display: block;
}

.ppregform__banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.ppregform__banner-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ppregform__banner-text {
    font-size: 18px;
    margin: 0;
}

/* Form */
.ppregform__form {
    padding: 30px;
}

.ppregform__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ppregform__field--half {
    grid-column: span 1;
}

.ppregform__field--full {
    grid-column: span 2;
}

/* Inputs */
.ppregform__input {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    border: none;
    border-bottom: 2px solid #a8a8a8;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ppregform__input:focus {
    border-bottom-color: #333;
}

.ppregform__input::placeholder {
    color: #a8a8a8;
}

.ppregform__input--error {
    border-bottom-color: #e74c3c;
    color: #e74c3c;
}

.ppregform__textarea {
    resize: vertical;
    min-height: 40px;
}

/* Required field indicator */
.ppregform__field--half .ppregform__input[required]::placeholder,
.ppregform__field--full .ppregform__input[required]::placeholder {
    position: relative;
}

/* Checkboxes */
.ppregform__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.ppregform__checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.ppregform__link {
    color: #333;
    text-decoration: underline;
}

.ppregform__link:hover {
    color: #000;
}

/* Response messages */
.ppregform__response {
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.ppregform__response--success {
    color: #27ae60;
    padding: 15px;
    background: #eafaf1;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.ppregform__response--error {
    color: #e74c3c;
    padding: 10px;
    background: #fdedec;
    border-radius: 4px;
}

/* Submit button */
.ppregform__submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.ppregform__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .ppregform-overlay {
        padding: 10px;
    }

    .ppregform-modal {
        margin: 10px auto;
    }

    .ppregform__grid {
        grid-template-columns: 1fr;
    }

    .ppregform__field--half {
        grid-column: span 1;
    }

    .ppregform__field--full {
        grid-column: span 1;
    }

    .ppregform__form {
        padding: 20px 15px;
    }

    .ppregform__banner-title {
        font-size: 20px;
    }

    .ppregform__banner-text {
        font-size: 14px;
    }
}
