/* AABPS Nomination Collection Plugin - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --aabps-primary: #094F83;
    --aabps-primary-dark: #0F4C81;
    --aabps-secondary: #1D7FC8;
    --aabps-accent: #E94F1D;
    --aabps-accent-hover: #c43e14;
    --aabps-gold: #FDB813;
    --aabps-bg-light: #F0F9FF;
    --aabps-border: #D0E3F0;
    --aabps-text-dark: #1e293b;
    --aabps-text-muted: #64748b;
}

.aabps-nomination-container {
    font-family: 'Quicksand', sans-serif;
    max-width: 960px;
    margin: 30px auto;
    padding: 20px;
    color: var(--aabps-text-dark);
    box-sizing: border-box;
}

.aabps-nomination-container * {
    box-sizing: border-box;
}

/* Header Banner */
.aabps-form-header {
    background: linear-gradient(135deg, var(--aabps-primary) 0%, var(--aabps-primary-dark) 50%, var(--aabps-secondary) 100%);
    color: #ffffff;
    padding: 38px 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px -5px rgba(9, 79, 131, 0.35);
    position: relative;
    overflow: hidden;
}

.aabps-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(233, 79, 29, 0.22) 0%, transparent 70%);
    border-radius: 50%;
}

.aabps-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.aabps-form-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.aabps-form-header p {
    color: #e0f2fe;
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 680px;
    line-height: 1.6;
}

/* Card Styling */
.aabps-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--aabps-border);
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(9, 79, 131, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aabps-card:hover {
    box-shadow: 0 10px 25px rgba(9, 79, 131, 0.08);
    border-color: #bde0fe;
}

.aabps-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.aabps-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--aabps-primary) 0%, var(--aabps-primary-dark) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(9, 79, 131, 0.25);
}

.aabps-card-icon.info-icon {
    background: linear-gradient(135deg, var(--aabps-secondary) 0%, var(--aabps-primary) 100%);
    box-shadow: 0 4px 12px rgba(29, 127, 200, 0.25);
}

.aabps-card-icon.pos-icon {
    background: linear-gradient(135deg, var(--aabps-primary) 0%, var(--aabps-secondary) 100%);
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.aabps-card-icon.agree-icon {
    background: linear-gradient(135deg, var(--aabps-accent) 0%, var(--aabps-accent-hover) 100%);
    box-shadow: 0 4px 12px rgba(233, 79, 29, 0.25);
}

.aabps-card-header h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--aabps-primary-dark);
    margin: 0;
}

.aabps-card-subtitle {
    color: var(--aabps-text-muted);
    font-size: 0.92rem;
    margin: 4px 0 0 0;
}

.aabps-card-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--aabps-accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

/* Info Card Specific */
.info-card {
    background: var(--aabps-bg-light);
    border-color: #bae6fd;
}

.aabps-badge.info-badge {
    background: var(--aabps-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    display: inline-block;
}

.aabps-info-text {
    color: var(--aabps-primary);
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Declaration Box */
.aabps-declaration-box {
    background: var(--aabps-bg-light);
    border: 1px solid #bae6fd;
    border-left: 5px solid var(--aabps-primary);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.aabps-declaration-box h4 {
    color: var(--aabps-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aabps-declaration-box h4 i {
    color: var(--aabps-accent);
}

.aabps-declaration-box p {
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.aabps-declaration-box p:last-child {
    margin-bottom: 0;
}

.aabps-declaration-highlight {
    color: var(--aabps-primary) !important;
    font-weight: 700 !important;
    background: #e0f2fe;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Form Controls */
.aabps-form-group {
    margin-bottom: 18px;
}

.aabps-form-group:last-child {
    margin-bottom: 0;
}

.aabps-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 8px;
}

.aabps-form-group label .required {
    color: var(--aabps-accent);
    font-weight: 700;
}

.aabps-form-row {
    display: flex;
    gap: 20px;
}

.aabps-col-6 {
    flex: 1;
}

.aabps-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.aabps-input-icon i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.aabps-input-icon input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--aabps-text-dark);
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.aabps-input-icon input:focus {
    background: #ffffff;
    border-color: var(--aabps-primary);
    box-shadow: 0 0 0 4px rgba(9, 79, 131, 0.12);
}

.aabps-input-icon input:focus + i,
.aabps-input-icon input:focus ~ i {
    color: var(--aabps-primary);
}

.aabps-input-icon input.has-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.field-feedback {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

.field-feedback.error {
    color: #dc2626;
}

.field-feedback.success {
    color: #16a34a;
}

/* Positions Grid (8 Cards) */
.aabps-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .aabps-positions-grid {
        grid-template-columns: 1fr;
    }
    .aabps-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.position-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.position-card:hover {
    transform: translateY(-3px);
}

/* Custom Styled Select Dropdown */
.aabps-select-wrapper {
    position: relative;
}

.aabps-member-select {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--aabps-text-dark);
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%20%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.25s ease;
}

.aabps-member-select:focus {
    background-color: #ffffff;
    border-color: var(--aabps-primary);
    box-shadow: 0 0 0 4px rgba(9, 79, 131, 0.12);
}

.aabps-help-text {
    font-size: 0.82rem;
    color: #d97706;
    margin-top: 8px;
    line-height: 1.4;
}

/* Agreement Card & Checkboxes */
.agreement-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}

.aabps-checkbox-group {
    margin-bottom: 18px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aabps-checkbox-group:hover {
    border-color: var(--aabps-secondary);
}

.aabps-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.aabps-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    background-color: #f1f5f9;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
    position: relative;
}

.aabps-checkbox-container:hover input ~ .checkmark {
    border-color: var(--aabps-primary);
}

.aabps-checkbox-container input:checked ~ .checkmark {
    background-color: var(--aabps-primary);
    border-color: var(--aabps-primary);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.aabps-checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.label-text {
    font-size: 0.95rem;
    color: var(--aabps-text-dark);
    line-height: 1.4;
}

.label-text small {
    color: var(--aabps-text-muted);
    font-size: 0.85rem;
}

/* Submit Button */
.aabps-submit-wrapper {
    margin-top: 25px;
}

.aabps-submit-btn {
    width: 100%;
    padding: 16px 28px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--aabps-primary) 0%, var(--aabps-primary-dark) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(9, 79, 131, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aabps-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(233, 79, 29, 0.45);
    background: linear-gradient(135deg, var(--aabps-accent) 0%, var(--aabps-accent-hover) 100%);
}

.aabps-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alert Boxes */
.aabps-alert-box {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.aabps-alert-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
}

.aabps-alert-box.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}
