/* Madib Theme - User Profile Page Styles */

.data-section {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.data-item {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: block;
}

.account-section {
	margin: 20px 0 40px 0;
	padding: 15px;
	background: white;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.delete-account-form button{
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    font-size: 1rem;
    background: var(--light-grey-base);
    border: 1px solid var(--light-grey-base);
    color: #FFF;
}

.delete-account-form button:hover{
    background: var(--orange-trim);
    border: 1px solid var(--orange-trim);
    color: #FFF;
}

#button-group{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.profile-page h2{
	margin-top: 0;
	text-align: center;
}

.profile-page h3{
	text-align: center;
}

/*************************
Edit Profile Account Popup
*************************/

.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.profile-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.close-popup, .close-password-popup{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.edit-profile-button-group{
	margin-top: 30px;
}

.orange-button-group{
	display: flex;
	justify-content: center;
	gap: 10px;
}

.orange-button{
	padding: 8px 20px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.2s;
	font-size: 1rem;
	border: 1px solid var(--orange-trim);
	color: var(--orange-trim);
}

.orange-button:hover{
	color: #fff;
	background-color: var(--orange-trim);
}

#form-message{
	text-align: center;
}

/*************************************
User Profile Page - Opt-In Check Boxes
*************************************/

.news-opt-in{
	margin-top: 30px;
}


@media screen and (min-width: 391px){
.marketing-opt-in{
	margin-top: 10px;
}

}
@media screen and (max-width: 390px){
	.marketing-opt-in{
	margin-top: 15px;
}
}

.marketing-opt-in label, .news-opt-in label{
	display: flex;
	width: 100%;
	align-items: center;
}

.marketing-opt-in input, .news-opt-in input{
	flex-shrink: 0;
}

.marketing-opt-in input[type="checkbox"], .news-opt-in input[type="checkbox"]{
    /* Hide the default checkbox */
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid var(--dark-grey-base);
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 10px;
    cursor: pointer;
}

.marketing-opt-in input[type="checkbox"]:checked, .news-opt-in input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: var(--orange-trim);
}

.marketing-opt-in input[type="checkbox"]:checked:after, .news-opt-in input[type="checkbox"]:checked:after{
    content: '';
    position: absolute;
    left: 7px;
    top: 0px;
    width: 8px;
    height: 16px;
    border: solid var(--orange-trim);
    border-width: 0 1px 2px 0;
    border-radius: 2px;
    transform: rotate(45deg);
    display: block;
}

.marketing-opt-in p, .news-opt-in p{
	margin: 0;
	flex: 1;

}

.password-cont{
	position: relative;

}

.password-cont button{
	right: 8px;
	top: 8px;
	position: absolute;
}

.password-cont svg{
	width: 20px;
}

.password-form-group {
    margin-bottom: 15px;
}

.password-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.password-form-group input {
	width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
