/* ===================================================
   Defence Exam Eligibility Checker — Plugin Styles
   =================================================== */

/* Wrapper / background */
.def-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 16px;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

/* Main form container */
.def-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 780px;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Header */
.def-header {
    text-align: center;
    margin-bottom: 28px;
}
.def-header h1 {
    font-size: 1.8rem;
    color: #2d2d2d;
    margin: 0 0 8px;
}
.def-header p {
    color: #666;
    margin: 0;
}

/* Form grid */
.def-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.def-field {
    display: flex;
    flex-direction: column;
}
.def-field-full {
    grid-column: 1 / -1;
}

.def-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.def-field label .req {
    color: #e74c3c;
}

.def-field input {
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.25s;
    outline: none;
}
.def-field input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.def-field input.is-invalid {
    border-color: #e74c3c;
}

.def-error {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
}

/* Submit button */
.def-btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
}
.def-btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.def-btn-submit:active {
    transform: translateY(0);
}
.def-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================================
   Results Panel
   =================================================== */
.def-results {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Greeting */
.def-greeting {
    text-align: center;
    margin-bottom: 20px;
}
.def-greeting h2 {
    font-size: 1.6rem;
    color: #2d2d2d;
    margin: 0 0 6px;
}
.def-age-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Notes box */
.def-notes {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}
.def-notes p { margin: 4px 0; }
.def-notes strong { color: #333; }

/* Section title */
.def-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Exam grid */
.def-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

/* Exam card */
.def-exam-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}
.def-exam-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.def-exam-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* Badges */
.def-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}
.def-badge-eligible {
    background: #d4edda;
    color: #155724;
}
.def-badge-not {
    background: #f8d7da;
    color: #721c24;
}

/* WhatsApp button */
.def-whatsapp-wrap {
    text-align: center;
    margin-top: 10px;
}
.def-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.def-btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}
.def-btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 600px) {
    .def-container,
    .def-results {
        padding: 24px 18px;
        border-radius: 14px;
    }
    .def-form-grid {
        grid-template-columns: 1fr;
    }
    .def-field-full {
        grid-column: 1;
    }
    .def-exam-grid {
        grid-template-columns: 1fr 1fr;
    }
    .def-header h1 {
        font-size: 1.4rem;
    }
}
@media (max-width: 400px) {
    .def-exam-grid {
        grid-template-columns: 1fr;
    }
}
