.section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.section-headerP {
    background-color: #6BAEF5;
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.section-header {
    background-color: #6BAEF5;
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.section-content {
    padding: 25px;
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        color: #666;
        font-size: 14px;
        margin-bottom: 5px;
        font-weight: 500;
    }

.select-wrapper {
    position: relative;
    display: block;
}

.modern-select {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .modern-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .modern-select:hover:not(:focus) {
        border-color: #cbd5e0;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.modern-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.select-arrow svg {
    width: 100%;
    height: 100%;
    fill: #718096;
    transition: fill 0.3s ease;
}

.modern-select:focus + .select-arrow svg {
    fill: #667eea;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .text-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .text-input:hover:not(:focus) {
        border-color: #cbd5e0;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

.hiddenStudent {
    display: none;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
        max-width: 100%;
    }

    .section-header {
        padding: 12px 20px;
        font-size: 16px;
    }

    .section-content {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .modern-select,
    .text-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .modern-select {
        padding-right: 45px;
    }

    .select-arrow {
        right: 12px;
        width: 18px;
        height: 18px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 10px;
    }

    .section {
        margin-bottom: 15px;
    }

    .section-header {
        padding: 10px 15px;
        font-size: 15px;
    }

    .section-content {
        padding: 15px 12px;
    }

    .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .modern-select,
    .text-input {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .modern-select {
        padding-right: 40px;
    }

    .select-arrow {
        right: 10px;
        width: 16px;
        height: 16px;
    }
}