/* ==========================================================================
   DPNA Training Areas Stylesheet
   Modern, accessible, zero-inline-css styling
   ========================================================================== */

/* Hero Banner */
.ta-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(191, 47, 55, 0.82) 100%),
                url('/frontend_update/img/main/photo2.jpg') center/cover no-repeat;
    padding-top: 130px;
    padding-bottom: 90px;
    color: #ffffff;
    overflow: hidden;
}

.ta-hero-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ta-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.ta-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 18px;
    max-width: 900px;
}

.ta-hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: 35px;
}

/* Hero Pill Highlights */
.ta-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 25px;
}

.ta-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ta-hero-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ta-hero-pill i {
    color: #bf2f37;
    font-size: 1.1rem;
}

/* General Sections */
.ta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
}

.ta-section--gray {
    background-color: #f8fafc;
}

.ta-section--white {
    background-color: #ffffff;
}

.ta-section--light {
    background-color: #f1f5f9;
}

/* Section Headers */
.ta-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px auto;
}

.ta-badge {
    display: inline-block;
    background-color: #fee2e2;
    color: #bf2f37;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.ta-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 14px;
}

.ta-lead {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.65;
}

/* Overview Section */
.ta-overview-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ta-overview-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.35;
}

.ta-overview-text {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 18px;
}

.ta-overview-text:last-of-type {
    margin-bottom: 25px;
}

.ta-quick-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #bf2f37;
    color: #ffffff !important;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ta-quick-cta:hover {
    background-color: #9e232a;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Specs Card */
.ta-specs-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #fee2e2;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px -5px rgba(191, 47, 55, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.ta-specs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.ta-specs-header-icon {
    width: 48px;
    height: 48px;
    background-color: #fee2e2;
    color: #bf2f37;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.ta-specs-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ta-specs-header-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.ta-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ta-spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ta-spec-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #bf2f37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.ta-spec-info {
    flex-grow: 1;
}

.ta-spec-label {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ta-spec-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Amenities & Feature Cards */
.ta-feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ta-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    border-color: #fca5a5;
}

.ta-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fee2e2;
    color: #bf2f37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.ta-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.35;
}

.ta-feature-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

/* Layout Cards */
.ta-layout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ta-layout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.09);
}

.ta-layout-visual {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-layout-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: #bf2f37;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ta-layout-icon {
    font-size: 3rem;
    color: #f8fafc;
    opacity: 0.9;
}

.ta-layout-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ta-layout-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.ta-layout-capacity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #bf2f37;
    margin-bottom: 12px;
}

.ta-layout-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Reservation & Calendar Section */
.ta-booking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.ta-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
}

.ta-calendar-month-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ta-calendar-controls {
    display: flex;
    gap: 8px;
}

.ta-cal-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ta-cal-btn:hover {
    background: #fee2e2;
    color: #bf2f37;
    border-color: #fca5a5;
}

.ta-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.ta-calendar-day-head {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 6px 0;
}

.ta-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    position: relative;
    transition: all 0.2s ease;
}

.ta-calendar-day:hover:not(.ta-calendar-day--past):not(.ta-calendar-day--booked) {
    border-color: #bf2f37;
    background: #fff5f5;
    color: #bf2f37;
}

.ta-calendar-day--past {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
}

.ta-calendar-day--booked {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.ta-calendar-day--partial {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
    cursor: pointer;
}

.ta-calendar-day--selected {
    background: #bf2f37 !important;
    color: #ffffff !important;
    border-color: #bf2f37 !important;
    box-shadow: 0 4px 10px rgba(191, 47, 55, 0.35);
}

.ta-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 3px;
    background-color: #10b981;
}

.ta-calendar-day--booked .ta-day-dot {
    background-color: #ef4444;
}

.ta-calendar-day--partial .ta-day-dot {
    background-color: #f59e0b;
}

.ta-calendar-day--selected .ta-day-dot {
    background-color: #ffffff;
}

/* Legend */
.ta-calendar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.ta-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta-legend-badge {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.ta-legend-badge--available {
    background-color: #10b981;
}

.ta-legend-badge--booked {
    background-color: #cbd5e1;
}

.ta-legend-badge--partial {
    background-color: #f59e0b;
}

.ta-legend-badge--selected {
    background-color: #bf2f37;
}

/* Time Slots */
.ta-slots-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.ta-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.ta-slot-btn {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ta-slot-btn:hover {
    border-color: #bf2f37;
    background: #fff5f5;
}

.ta-slot-btn--active {
    border-color: #bf2f37 !important;
    background: #fee2e2 !important;
    color: #bf2f37 !important;
    font-weight: 700;
}

.ta-slot-btn--disabled {
    opacity: 0.55;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.ta-slot-btn--disabled .ta-slot-hours {
    color: #ef4444;
    font-weight: 700;
}

.ta-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.d-none {
    display: none !important;
}

.ta-slot-name {
    font-weight: 700;
}

.ta-slot-hours {
    font-size: 0.78rem;
    color: #64748b;
}

/* Booking Form Elements */
.ta-form-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.ta-form-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.55;
}

.ta-form-group {
    margin-bottom: 20px;
}

.ta-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.ta-label-req {
    color: #bf2f37;
}

.ta-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-input:focus {
    border-color: #bf2f37;
    box-shadow: 0 0 0 3px rgba(191, 47, 55, 0.15);
    outline: none;
}

.ta-textarea {
    resize: vertical;
    min-height: 95px;
}

.ta-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #bf2f37;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(191, 47, 55, 0.25);
}

.ta-btn-submit:hover {
    background-color: #9e232a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(191, 47, 55, 0.35);
}

/* Accessibility & Inclusivity Callout */
.ta-callout-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.ta-callout-icon {
    font-size: 3.5rem;
    color: #fee2e2;
    margin-bottom: 20px;
}

.ta-callout-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ta-callout-text {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 820px;
}

.ta-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ta-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    color: #f1f5f9;
}

.ta-check-item i {
    color: #4ade80;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* FAQ Accordion */
.ta-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ta-faq-item:hover {
    border-color: #cbd5e1;
}

.ta-faq-btn {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ta-faq-icon {
    transition: transform 0.25s ease;
    color: #bf2f37;
    font-size: 1.1rem;
}

.ta-faq-btn:not(.collapsed) .ta-faq-icon {
    transform: rotate(180deg);
}

.ta-faq-collapse {
    padding: 0 24px 20px 24px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Direct Contact Banner */
.ta-direct-contact {
    background-color: #fee2e2;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.ta-direct-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 10px;
}

.ta-direct-desc {
    font-size: 0.95rem;
    color: #7f1d1d;
    margin-bottom: 20px;
}

.ta-direct-contacts-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ta-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bf2f37;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ta-direct-link:hover {
    color: #7f1d1d;
    text-decoration: underline;
}

/* Alert Notification */
.ta-alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ta-hero-title {
        font-size: 2.3rem;
    }
    .ta-check-list {
        grid-template-columns: 1fr;
    }
    .ta-slots-grid {
        grid-template-columns: 1fr;
    }
    .ta-specs-card {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .ta-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .ta-hero-title {
        font-size: 1.85rem;
    }
    .ta-hero-subtitle {
        font-size: 1rem;
    }
    .ta-booking-card {
        padding: 24px 18px;
    }
    .ta-overview-content {
        padding: 25px 20px;
    }
    .ta-callout-card {
        padding: 30px 20px;
    }
    .ta-callout-title {
        font-size: 1.5rem;
    }
}
