/* ─── Allied PDF Gate — Frontend Styles v2.0 ────────────────────────────── */

.apg-gate-wrap { display: inline-block; margin: 8px 0; }

.apg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; font-family: inherit; font-size: 15px;
    font-weight: 600; line-height: 1.2; border-radius: 4px;
    border: none; cursor: pointer; text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.apg-btn:focus { outline: 3px solid #FF792D; outline-offset: 2px; }
.apg-btn--view, .apg-btn--submit { background-color: #FF792D; color: #ffffff; }
.apg-btn--view:hover, .apg-btn--submit:hover { background-color: #e6691f; color: #fff; text-decoration: none; }
.apg-btn--view:active, .apg-btn--submit:active { transform: translateY(1px); }
.apg-btn--secondary { background: transparent; color: #FF792D; border: 2px solid #FF792D; }
.apg-btn--secondary:hover { background: #FF792D; color: #fff; text-decoration: none; }
.apg-btn__icon { font-size: 16px; line-height: 1; }
.apg-btn:disabled { opacity: 0.65; cursor: not-allowed; pointer-events: none; }

/* ─── Download / Gate Page ───────────────────────────────────────────────── */

.apg-download-page { max-width: 560px; margin: 0 auto; padding: 40px 24px; }
.apg-back-link { margin-bottom: 32px; font-size: 14px; }
.apg-back-link a { color: #555; text-decoration: none; }
.apg-back-link a:hover { color: #FF792D; }

.apg-gate-header { margin-bottom: 32px; }
.apg-gate-title { font-size: 26px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.apg-gate-subtitle { font-size: 16px; color: #555; margin: 0; }

.apg-form { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 32px; }

.apg-field { margin-bottom: 20px; }
.apg-field label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.apg-required { color: #FF792D; margin-left: 2px; }

.apg-field input[type="text"],
.apg-field input[type="email"] {
    display: block; width: 100%; padding: 10px 14px;
    font-family: inherit; font-size: 15px; color: #1a1a1a;
    background: #fff; border: 1px solid #ccc; border-radius: 4px;
    box-sizing: border-box; transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none; appearance: none;
}
.apg-field input[type="text"]:focus,
.apg-field input[type="email"]:focus {
    border-color: #FF792D; box-shadow: 0 0 0 3px rgba(255,121,45,0.15); outline: none;
}
.apg-field--error input[type="text"],
.apg-field--error input[type="email"] { border-color: #c0392b; }

.apg-field-error { display: block; margin-top: 5px; font-size: 13px; color: #c0392b; min-height: 18px; }

.apg-field--consent { margin-bottom: 24px; }
.apg-consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: normal !important; }
.apg-consent-label input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: #FF792D; cursor: pointer; }
.apg-consent-label span { font-size: 13px; color: #555; line-height: 1.5; }
.apg-consent-label a { color: #FF792D; text-decoration: underline; }

.apg-submit-wrap { margin-top: 8px; }
.apg-btn--submit { width: 100%; justify-content: center; padding: 14px 24px; font-size: 16px; }
.apg-form-error { margin-top: 16px; padding: 12px 16px; background: #fdf0ef; border: 1px solid #e74c3c; border-radius: 4px; color: #c0392b; font-size: 14px; }

.apg-download-page--error { text-align: center; padding: 60px 24px; }
.apg-error-message { font-size: 16px; color: #555; margin-bottom: 24px; }

@media (max-width: 600px) {
    .apg-download-page { padding: 24px 16px; }
    .apg-form { padding: 24px 16px; }
    .apg-gate-title { font-size: 22px; }
}
