/* Profile Page Styles */
.profile-section {
    background-color: var(--white);
    min-height: 80vh;
    padding: 1.5rem 0;
}

.profile-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-family: "Source Sans 3", sans-serif;
}

.profile-greeting {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 2rem;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: left;
    font-family: "Source Sans 3", sans-serif;
}

/* Alert Messages */
.profile-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.profile-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.profile-alert li {
    margin-bottom: 0.25rem;
}

/* Section Wrapper */
.profile-section-wrapper {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    font-family: "Source Sans 3", sans-serif;
}

/* Form Styles */
.profile-form {
    width: 100%;
}

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

.profile-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--font-dark);
    margin-bottom: 0.5rem;
    font-family: "Source Sans 3", sans-serif;
}

.profile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: "Source Sans 3", sans-serif;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(164, 10, 42, 0.1);
}

/* Submit Button */
.profile-submit-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: "Source Sans 3", sans-serif;
}

.profile-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 10, 42, 0.3);
}

.profile-submit-btn:active {
    transform: translateY(0);
}

/* Subsection Styles */
.profile-subsection {
    margin-bottom: 2.5rem;
}

.profile-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--font-dark);
    margin-bottom: 1rem;
    font-family: "Source Sans 3", sans-serif;
}

/* Radio Group */
.profile-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.profile-radio-label:hover {
    background-color: #f5f5f5;
}

.profile-radio-label input[type="radio"],
.profile-radio-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.profile-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-radio-label input[type="radio"]:checked + .profile-radio-custom,
.profile-radio-label input[type="checkbox"]:checked + .profile-radio-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.profile-radio-label input[type="radio"]:checked + .profile-radio-custom::after,
.profile-radio-label input[type="checkbox"]:checked + .profile-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--white);
}

.profile-radio-text {
    font-size: 0.95rem;
    color: var(--font-dark);
    font-family: "Source Sans 3", sans-serif;
}

.profile-radio-label input[type="radio"]:checked ~ .profile-radio-text {
    font-weight: 600;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-page-title {
        font-size: 2rem;
    }

    .profile-greeting {
        font-size: 1.25rem;
        padding: 1rem 1.5rem;
    }

    .profile-section-wrapper {
        padding: 1.5rem;
    }

    .profile-section-title {
        font-size: 1.25rem;
    }

    .profile-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .profile-submit-btn {
        width: 100%;
        padding: 0.75rem 2rem;
    }
}

@media (max-width: 480px) {
    .profile-page-title {
        font-size: 1.75rem;
    }

    .profile-greeting {
        font-size: 1.1rem;
    }

    .profile-section-wrapper {
        padding: 1rem;
    }
}
