/* ═══════════════════════════════════════════
   PPA Submission Form — Public Styles
   Designed to match existing Avada form look
   ═══════════════════════════════════════════ */

/* Wrapper */
.ppa-form-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Notices */
.ppa-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
}

.ppa-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

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

/* Season Banner */
.ppa-season-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ppa-season-name {
    font-weight: 600;
}

.ppa-season-fee {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 3px;
}

/* Form Sections */
.ppa-form-section {
    margin-bottom: 24px;
}

.ppa-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

/* Form Rows */
.ppa-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .ppa-form-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Fields */
.ppa-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ppa-field-full {
    flex: 1 1 100%;
}

.ppa-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ppa-field .required {
    color: #e53935;
}

.ppa-field input[type="text"],
.ppa-field input[type="email"],
.ppa-field input[type="tel"],
.ppa-field input[type="url"],
.ppa-field input[type="date"],
.ppa-field input[type="number"],
.ppa-field select,
.ppa-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ppa-field input:focus,
.ppa-field select:focus,
.ppa-field textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
    background: #fff;
}

.ppa-field input::placeholder,
.ppa-field textarea::placeholder {
    color: #aaa;
}

.ppa-field textarea {
    resize: vertical;
    min-height: 80px;
}

.ppa-field-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* File Upload */
.ppa-file-upload {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.ppa-file-upload:hover {
    border-color: #999;
    background: #f5f5f5;
}

.ppa-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.ppa-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ppa-upload-icon {
    font-size: 24px;
    color: #999;
}

.ppa-upload-text {
    font-size: 13px;
    color: #777;
}

.ppa-file-selected .ppa-upload-text {
    color: #2e7d32;
    font-weight: 600;
}

.ppa-file-selected {
    border-color: #2e7d32;
    background: #f1f8e9;
}

/* Author Blocks */
.ppa-author-block {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.ppa-author-heading {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Errors */
.ppa-form-errors {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #c62828;
    font-size: 14px;
}

.ppa-form-errors ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.ppa-form-errors li {
    margin-bottom: 4px;
}

/* Submit Button */
.ppa-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

.ppa-btn-submit {
    background: #333;
    color: #fff;
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.ppa-btn-submit:hover {
    background: #555;
}

.ppa-btn-submit:active {
    transform: scale(0.98);
}

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

.ppa-btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.ppa-btn-outline:hover {
    background: #333;
    color: #fff;
}

.ppa-form-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.ppa-form-submit {
    text-align: center;
}

/* ─── Success Message ─── */
.ppa-success-message {
    text-align: center;
    padding: 40px 20px;
}

.ppa-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ppa-success-message h2 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 8px;
}

.ppa-success-details {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 16px 24px;
    display: inline-block;
    text-align: left;
    margin: 16px 0;
    font-size: 14px;
}

.ppa-success-details p {
    margin: 6px 0;
}

.ppa-success-note {
    color: #666;
    font-size: 13px;
    margin: 16px 0 24px;
}

/* ─── Failed Message ─── */
.ppa-failed-message {
    text-align: center;
    padding: 40px 20px;
}

.ppa-failed-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f57c00;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ppa-failed-message h2 {
    font-size: 24px;
    color: #f57c00;
}
