/**
 * IABE Press Distribution Form - Premium Interactive Design
 * Brand colors: Navy #0B1A3D, Gold #C5A028
 * UPDATED: Added styles for new UI elements (intro section, feature list, important notice, etc.)
 */

/* ============================================
   MAIN CONTAINER
   ============================================ */
.iab-press-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   FORM CARD
   ============================================ */
.iab-press-card {
    background: #ffffff;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iab-press-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   HEADER SECTION
   ============================================ */
.iab-press-header {
    background: linear-gradient(135deg, #0B1A3D 0%, #142c5a 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 4px solid #C5A028;
    position: relative;
    overflow: hidden;
}

.iab-press-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197,160,40,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.iab-press-logo {
    max-width: 150px !important;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.iab-press-logo:hover {
    transform: scale(1.05);
}

.iab-press-header h1 {
    color: #C5A028;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.iab-press-header p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    margin: 0;
}

/* ============================================
   INTRO SECTION (NEW)
   ============================================ */
.iab-press-intro {
    background: linear-gradient(135deg, #fef9e6 0%, #fff8e8 100%);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    border-left: 4px solid #C5A028;
}

.iab-press-intro-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.iab-press-intro-content p strong {
    color: #0B1A3D;
    font-size: 18px;
}

.iab-press-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.iab-press-features span {
    background: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    color: #0B1A3D;
    border: 1px solid #C5A028;
    display: inline-block;
}

.iab-press-note {
    background: #0B1A3D;
    color: #C5A028;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 15px;
}

/* ============================================
   FORM WRAPPER
   ============================================ */
.iab-press-form-wrapper {
    padding: 0 10px;
}

.iab-eyebrow {
    color: #C5A028;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.iab-press-form-wrapper h3 {
    font-size: 24px;
    color: #0B1A3D;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ============================================
   IMPORTANT NOTICE (NEW)
   ============================================ */
.iab-press-important-notice {
    background: #e8f0fe;
    border-left: 4px solid green;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 14px;
    color: green;
}

.iab-press-important-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   STATIC OUTLETS BOX (NEW - replaces dropdown)
   ============================================ */
.iab-static-outlets {
    background: #f0f4f8;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #0B1A3D;
    border: 1px solid #e2e8f0;
}

/* ============================================
   EDITING DISCLOSURE (NEW)
   ============================================ */
.iab-editing-disclosure {
    background: #e8f0fe;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #0B1A3D;
    border-left: 3px solid #C5A028;
}

/* ============================================
   HELPER TEXT (NEW)
   ============================================ */
.iab-press-helper {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.iab-press-helper strong {
    color: #0B1A3D;
    display: block;
    margin-bottom: 10px;
}

.iab-press-helper ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.iab-press-helper li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ============================================
   FOOTER NOTE (NEW)
   ============================================ */
.iab-press-footer-note {
    background: #fef9e6;
    border-left: 4px solid #C5A028;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

/* ============================================
   SUBMIT NOTE (NEW)
   ============================================ */
.iab-press-submit-note {
    text-align: center;
    font-size: 12px;
    color: #718096;
    margin-top: 15px;
    padding: 10px;
}

/* ============================================
   FORM BODY
   ============================================ */
.iab-press-body {
    padding: 35px;
}

/* Form Rows */
.iab-form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.iab-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.iab-form-group.full-width {
    width: 100%;
    flex: 100%;
}

/* Labels */
.iab-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0B1A3D;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.required {
    color: #C5A028;
    font-size: 16px;
    font-weight: bold;
}

/* Input Fields */
.iab-form-group input,
.iab-form-group select,
.iab-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-radius: 8px;
}

.iab-form-group input:focus,
.iab-form-group select:focus,
.iab-form-group textarea:focus {
    outline: none;
    border-color: #C5A028;
    box-shadow: 0 0 0 4px rgba(197, 160, 40, 0.15);
    transform: translateY(-1px);
}

.iab-form-group input:hover,
.iab-form-group select:hover,
.iab-form-group textarea:hover {
    border-color: #cbd5e0;
}

/* Readonly field (Award Level, Organization Name) */
.iab-form-group input[readonly] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #4a5568;
    cursor: not-allowed;
}

/* Textarea */
.iab-form-group textarea {
    resize: vertical;
    min-height: 200px;
}

/* ============================================
   CHECKBOX STYLING
   ============================================ */
.iab-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 12px 0;
}

.iab-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #C5A028;
    flex-shrink: 0;
}

.iab-checkbox span {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.iab-checkbox:hover span {
    color: #0B1A3D;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.iab-press-submit {
    background: linear-gradient(135deg, #C5A028 0%, #b38f20 100%);
    color: #0B1A3D;
    width: 100%;
    padding: 16px 24px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.iab-press-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.iab-press-submit:hover {
    background: linear-gradient(135deg, #d4af37 0%, #C5A028 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(197, 160, 40, 0.4);
}

.iab-press-submit:hover::before {
    left: 100%;
}

.iab-press-submit:disabled {
    background: #cbd5e0;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   MESSAGES (Success/Error)
   ============================================ */
#iab-press-message {
    margin-top: 20px;
}

.success-message {
    background: #e6f7e6;
    color: #2e7d32;
    padding: 15px 20px;
    border-left: 4px solid #2e7d32;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.5s ease;
    border-radius: 8px;
}

.error-message {
    background: #fee2e2;
    color: #c62828;
    padding: 15px 20px;
    border-left: 4px solid #c62828;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.5s ease;
    border-radius: 8px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.iab-press-footer {
    background: #f8fafc;
    padding: 18px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.iab-press-footer p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.iab-press-footer a {
    color: #C5A028;
    text-decoration: none;
}

.iab-press-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   LOADING STATE
   ============================================ */
.iab-press-submit.loading {
    position: relative;
    color: transparent;
}

.iab-press-submit.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #0B1A3D;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   PRESS DISTRIBUTION DISCLAIMER NOTE
   ============================================ */
.iab-press-disclaimer {
    background: #f5f5f5;
    border-left: 4px solid #C5A028;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 13px;
    color: #555;
    border-radius: 4px;
}

.iab-press-disclaimer p {
    margin: 0;
    line-height: 1.5;
}

.iab-press-disclaimer strong {
    color: #0B1A3D;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .iab-press-container {
        margin: 30px auto;
    }
    
    .iab-press-body {
        padding: 25px;
    }
    
    .iab-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .iab-press-header h1 {
        font-size: 24px;
    }
    
    .iab-press-header p {
        font-size: 14px;
    }
    
    .iab-press-header {
        padding: 30px 20px;
    }
    
    .iab-press-submit {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .iab-press-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .iab-press-features span {
        display: block;
        text-align: center;
    }
    
    .iab-press-intro {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .iab-press-body {
        padding: 20px;
    }
    
    .iab-form-group input,
    .iab-form-group select,
    .iab-form-group textarea {
        padding: 12px 14px;
    }
    
    .iab-checkbox span {
        font-size: 12px;
    }
    
    .iab-press-form-wrapper h3 {
        font-size: 20px;
    }
}