/* Header */
header {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color), var(--dark-color));
    color: var(--white);
    padding: 8rem 0 4rem;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.course-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.course-header-text {
    flex: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.course-header-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.course-header-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
}

/* Registration Section */
.register-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.register-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3rem);
    position: relative;
    z-index: 2;
}

.register-form-container h1 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.register-form-container h1 .highlight {
    color: var(--primary-dark);
}

.register-form-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.course-info {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.1rem;
}

.course-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 300px;
}

.flash-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.flash-message:hover {
    transform: translateX(-5px);
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.flash-text {
    flex-grow: 1;
}

/* Modern Radio Buttons */
.modern-radio {
    margin-bottom: 1.5rem;
}

.modern-radio .radio-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    display: block;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option label {
    padding-left: 32px;
    position: relative;
    cursor: pointer;
    color: #555;
    font-size: 1rem;
}

.radio-option label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: white;
    transition: border-color 0.3s ease;
}

.radio-option input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.radio-option:hover label::before {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

/* Footer Grid Styles */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    width: 100%;
}

.footer-col p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    width: 100%;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-credits a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-credits a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .course-header-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .course-header {
        padding: 7rem 0 3rem;
        min-height: auto;
    }
    
    .course-header-text h1 {
        font-size: 2rem;
    }
    
    .register-form-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .course-header-text h1 {
        font-size: 1.8rem;
    }
    
    .register-form-container {
        padding: 1.5rem;
    }
    
    .course-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}