/* Home page and form styles */

/* Page Header Section (for forms) */
.page-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.page-header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 2rem;
}

.form-card .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-card .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-card select.form-control {
    border-radius: 8px;
}

/* Date widget fields - ensure enough width for day, month, and year selects */
.form-card select[name$="_day"],
.form-card select[name$="_month"] {
    min-width: 80px;
}

.form-card select[name$="_year"] {
    min-width: 100px;
}

/* Detail Items (for application view) */
.detail-item {
    padding: 0.5rem 0;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Section Cards */
.section-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.section-card .card-header {
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    text-align: center;
    border: none;
}

.section-card .card-header h5 {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-card .card-body {
    padding: 1.5rem;
}

/* Section-specific colors - traditional Scouting colors */
.section-card.beavers .card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.section-card.beavers {
    border-top: 4px solid #2980b9;
}

.section-card.cubs .card-header {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
}

.section-card.cubs {
    border-top: 4px solid #219a52;
}

.section-card.scouts .card-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.section-card.scouts {
    border-top: 4px solid #8e44ad;
}

.section-card.ventures .card-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.section-card.ventures {
    border-top: 4px solid #c0392b;
}

.section-card.rovers .card-header {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.section-card.rovers {
    border-top: 4px solid #d35400;
}

/* Section icons */
.section-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Meeting Table */
.meeting-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.meeting-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.meeting-table th {
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.meeting-table td {
    padding: 1rem;
    vertical-align: middle;
}

.meeting-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Fee Card */
.fee-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #ffc107;
}

.fee-card h3 {
    color: #856404;
    font-weight: 600;
}

.fee-card strong {
    color: #856404;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 80px 0;
    margin-top: 60px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section h2 {
    font-weight: 700;
}

/* Decorative elements */
.section-decoration {
    position: absolute;
    opacity: 0.1;
    font-size: 8rem;
    color: white;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-card {
        margin-bottom: 1rem;
    }
}
