@font-face {
    font-family: 'Angry';
    src: url('../Fonts/Angry.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('../Fonts/Geologica.ttf') format('truetype');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geologica', sans-serif;
    background-image: url('../Image/back_request.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.volunteer-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.volunteer-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.back-link {
    margin-bottom: 24px;
}

.back-btn {
    font-family: 'Geologica', sans-serif;
    font-size: 0.9rem;
    color: #542DE0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: #3a1a9e;
    transform: translateX(-3px);
}

.volunteer-title {
    font-family: 'Angry', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #542DE0;
    text-align: center;
    margin-bottom: 12px;
}

.volunteer-subtitle {
    font-family: 'Geologica', sans-serif;
    font-size: 0.95rem;
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
}

.volunteer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Geologica', sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #542DE0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(84, 45, 224, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group.half {
    flex: 1;
    min-width: 150px;
}

.days-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.checkbox-group {
    flex-direction: row;
}

.checkbox-label {
    font-family: 'Geologica', sans-serif;
    font-size: 0.85rem;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.submit-btn {
    font-family: 'Angry', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 28px;
    background: #FE5F1B;
    color: #ffffff;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background: #e04a0a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(254, 95, 27, 0.3);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.success-message h3 {
    font-family: 'Angry', sans-serif;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.success-message p {
    margin-bottom: 8px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

@media (max-width: 700px) {
    body {
        padding: 20px 15px;
    }
    
    .volunteer-container {
        padding: 25px 20px;
    }
    
    .volunteer-title {
        font-size: 1.5rem;
    }
    
    .volunteer-subtitle {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half {
        min-width: auto;
    }
    
    .days-group {
        gap: 12px;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .success-message h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .volunteer-title {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .days-group {
        gap: 10px;
    }
    
    .checkbox-label {
        font-size: 0.75rem;
    }
}