/**
 * IABE Custom Styles - Application Form Only
 * Premium styling matching screenshot exactly
 */

/* ============================================
   EYEBROW & TITLE
   ============================================ */
.iab-eyebrow {
    color: #D99F3B;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.iab-form-title {
    font-size: 28px;
    color: #0B1A3D;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   FORM LAYOUT - Two Column Grid
   ============================================ */
.iab-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.iab-col-half {
    flex: 1;
    min-width: calc(50% - 12px);
}

.iab-col-full {
    width: 100%;
}

/* ============================================
   FORM FIELD STYLES
   ============================================ */
.iab-form-group {
    margin-bottom: 15px;
}

.iab-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0B1A3D;
    font-size: 14px;
}

.iab-form-group input,
.iab-form-group select,
.iab-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0 !important;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.iab-form-group input:focus,
.iab-form-group select:focus,
.iab-form-group textarea:focus {
    outline: none;
    border-color: #D99F3B;
    box-shadow: 0 0 0 3px rgba(197, 160, 40, 0.1);
}

.iab-form-group input::placeholder,
.iab-form-group textarea::placeholder {
    color: #aaa;
}

/* Dropdown arrow */
.iab-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

/* Form hint text */
.form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

/* ============================================
   TEXTAREA STYLES
   ============================================ */
.iab-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   CHECKBOX STYLES
   ============================================ */
.iab-checkbox-group {
    margin: 24px 0 20px;
}

.iab-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.iab-checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.iab-submit-btn {
    background: #D99F3B;
    color: #ffffff;
    padding: 16px 30px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iab-submit-btn:hover {
    background: #a07d1f;
}

.iab-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Privacy Note */
.iab-privacy-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   FORM MESSAGES
   ============================================ */
#iab-form-message {
    margin-top: 15px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

/* ============================================
   EVALUATION WIDGET
   ============================================ */
#iab-evaluation-widget {
    background: #0B1A3D;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
}

.iab-evaluation-content {
    color: #ffffff;
}

.iab-loader {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    border: 4px solid rgba(197, 160, 40, 0.2);
    border-top: 4px solid #D99F3B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iab-evaluation-text {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #D99F3B;
}

.iab-evaluation-message {
    margin-top: 20px;
}

.approval-message {
    font-size: 32px;
    font-weight: bold;
    color: #D99F3B;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple solution - target any asterisk inside label */
.iab-form-group label span.gold-star,
.iab-form-group label .required-star {
    color: #D99F3B;
    font-weight: 600;
}

/* Or even simpler - all asterisks in labels become gold */
.iab-form-group label {
    color: #0B1A3D;
}

.iab-form-group label i,
.iab-form-group label em {
    color: #D99F3B;
    font-style: normal;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .iab-form-group {
        margin-bottom: 0;
    }

    .iab-form-title {
        font-size: 22px;
    }
    
    .iab-row {
        gap: 15px;
    }
    
    .iab-col-half {
        min-width: 100%;
    }
    
    .iab-evaluation-text {
        font-size: 20px;
    }
    
    .approval-message {
        font-size: 22px;
    }
}