/* Professional Frontend Forms Styling (Knesta Design System) */

/* Make all text elements in the form inherit the global typography variables */
.frontend-form-module,
.frontend-crs-module,
.frontend-fsw-module {
    font-family: var(--font-main, 'DM Sans', sans-serif);
}

.frontend-form-module h1,
.frontend-form-module h2,
.frontend-form-module h3,
.frontend-form-module h4,
.frontend-form-module h5,
.frontend-form-module h6,
.frontend-crs-module h1,
.frontend-crs-module h2,
.frontend-crs-module h3,
.frontend-crs-module h4,
.frontend-crs-module h5,
.frontend-crs-module h6,
.frontend-fsw-module h1,
.frontend-fsw-module h2,
.frontend-fsw-module h3,
.frontend-fsw-module h4,
.frontend-fsw-module h5,
.frontend-fsw-module h6,
.frontend-form-title,
.pei-category-title,
.sinp-category-title,
.mpnp-category-title,
.aaip-category-title,
.ntnp-category-title,
.bc-category-title,
.score-panel-sticky h5,
.score-panel-sticky div {
    font-family: var(--font-heading, 'Lora', serif);
}

.frontend-form-hero {
    background: #F7F4EE;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(230, 28, 93, 0.15);
    text-align: center;
    box-shadow: 0 10px 30px rgba(230, 28, 93, 0.08);
}

.frontend-form-module.my-5,
.frontend-crs-module.my-5,
.frontend-fsw-module.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
}

.frontend-form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    font-family: var(--font-heading, 'Lora', serif);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.frontend-form-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    font-family: var(--font-main, 'DM Sans', sans-serif);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.frontend-form-module .bg-white {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(230, 28, 93, 0.12);
    border: 1px solid #d1d5db;
}

/* Enhanced Form Controls */
.frontend-form-module .form-label,
.frontend-crs-module .form-label,
.frontend-fsw-module .form-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-family: var(--font-main, 'DM Sans', sans-serif);
}

.frontend-form-module .form-control,
.frontend-form-module .form-select,
.frontend-crs-module .form-control,
.frontend-crs-module .form-select,
.frontend-fsw-module .form-control,
.frontend-fsw-module .form-select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-main, 'DM Sans', sans-serif);
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.frontend-form-module .form-control:focus,
.frontend-form-module .form-select:focus,
.frontend-crs-module .form-control:focus,
.frontend-crs-module .form-select:focus,
.frontend-fsw-module .form-control:focus,
.frontend-fsw-module .form-select:focus {
    border-color: #e61c5d;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(230, 28, 93, 0.15);
    outline: none;
}

.frontend-form-module .btn-primary {
    background-color: #e61c5d;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.8rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 28, 93, 0.2);
}

.frontend-form-module .btn-primary:hover {
    background-color: #c9000a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 28, 93, 0.35);
    color: #ffffff;
}

/* Base sections for CRS/FSW */
.frontend-crs-module .crs-section,
.frontend-fsw-module .crs-section {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(230, 28, 93, 0.12);
    transition: all 0.3s ease;
}

.frontend-crs-module .crs-section:hover,
.frontend-fsw-module .crs-section:hover {
    transform: translateY(-4px);
    border-color: #e61c5d;
    box-shadow: 0 18px 40px rgba(230, 28, 93, 0.22);
}

.frontend-crs-module .crs-section-header,
.frontend-fsw-module .crs-section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(230, 28, 93, 0.15);
}

.frontend-crs-module .crs-section-header h4,
.frontend-fsw-module .crs-section-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.35rem;
    color: #000000;
    font-family: var(--font-main, 'DM Sans', sans-serif);
}

/* For NOC and PGWP cards */
.noc-card,
.pgwp-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(230, 28, 93, 0.12);
    overflow: hidden;
}

.noc-card:hover,
.pgwp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(230, 28, 93, 0.22);
    border-color: #e61c5d;
}

.noc-card-header,
.pgwp-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fdfcf9;
}

.noc-card-body,
.pgwp-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.noc-card-footer,
.pgwp-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.search-container {
    background: #F7F4EE;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(230, 28, 93, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Badges */
.badge-custom {
    padding: 0.5em 1em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.badge-teer {
    background-color: rgba(230, 28, 93, 0.1);
    color: #e61c5d;
    font-weight: 700;
}

.badge-category {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-success-light {
    background-color: #dcfce7;
    color: #166534;
}

.badge-danger-light {
    background-color: #fee2e2;
    color: #991b1b;
}