:root {
    --primary-color: #008000;
    --primary-dark: #006400;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --error-color: #dc3545;
    --success-color: #28a745;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222;
    background: url(480801379_1058781652960958_6803482172907968251_n.jpg) center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo-container h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.navlist {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 4px 0;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--secondary-color);
}

.required {
    color: var(--error-color);
}

/* Form Sections */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 0.5rem;
    width: auto;
}

.input-grid,
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 0, 0.25);
}

.input-group input::placeholder {
    color: #adb5bd;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    height: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Footer */
.footer {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .navlist {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .navlist.active {
        display: flex;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-content {
        padding: 1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .input-grid,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Details Modal */
.details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.details-modal-content {
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: var(--box-shadow);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.details-modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.details-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.details-modal-close:hover {
    color: var(--dark-color);
}

.details-section {
    margin-bottom: 1.5rem;
}

.details-section-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.detail-value {
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.details-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Photo Preview Styles */
.photo-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    display: none;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 3px dashed var(--border-color);
}

.photo-placeholder i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* In the details modal CSS */
.detail-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}