/* Custom Login & Register Styles */

.clr-register-form-wrapper,
.clr-login-form-wrapper {
	margin: 0px auto;
	padding: 30px;	
}

.clr-register-form-wrapper h2,
.clr-login-form-wrapper h2 {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: 28px;
	color: #333;
	text-align: center;
}

.clr-form-group {
	margin-bottom: 30px;
}

.clr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    font-size: 16px;
    font-family: "Inter", sans-serif;
}

.clr-form-group .required {
	color: #e74c3c;
}

.clr-form-group input[type="text"],
.clr-form-group input[type="email"],
.clr-form-group input[type="tel"],
.clr-form-group input[type="password"],
.clr-form-group textarea,
.clr-form-group select {
	width: 100%;
    padding: 10px 15px;
    border: 1px solid #217E8C;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    font-family: 'Inter';
    background: transparent;
}

.clr-form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.clr-form-group select {
	background-color: #E1EEEF;
	cursor: pointer;
	appearance: none;
	background-image: url("/wp-content/plugins/custom-login-register/assets/img/downarrow.svg");
	background-repeat: no-repeat;
	background-position: right 31px center;
	padding-right: 40px;
}


.clr-subscription-amount {
	margin-top: 12px;
	padding: 12px;
	background-color: #f0f8ff;
	border: 1px solid #0073aa;
	border-radius: 4px;
	color: #0073aa;
	font-size: 16px;
}

.clr-subscription-amount strong {
	display: block;
}

.clr-subscription-amount #amount-value {
	color: #005a87;
}

.clr-remember-me {
	display: flex;
	align-items: center;
}

.clr-remember-me label {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	cursor: pointer;
}

.clr-remember-me input[type="checkbox"] {
	margin-right: 8px;
	width: auto;
}

.clr-submit-btn {
	width: 100%;
	padding: 14px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.clr-submit-btn:hover {
	background: #005a87;
}

.clr-submit-btn:active {
	transform: translateY(1px);
}

.clr-message {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.clr-message.clr-error {
	background: #fee;
	border: 1px solid #fcc;
	color: #c33;
}

.clr-message.clr-success {
	background: #efe;
	border: 1px solid #cfc;
	color: #3c3;
}

.clr-message p {
	margin: 0;
}

.clr-form-footer {
	margin-top: 20px;
	text-align: center;
}

.clr-form-footer p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.clr-form-footer a {
	color: #0073aa;
	text-decoration: none;
}

.clr-form-footer a:hover {
	text-decoration: underline;
}

/* Loading state */
.clr-form-group.loading .clr-submit-btn {
	opacity: 0.6;
	cursor: not-allowed;
	position: relative;
}

.clr-form-group.loading .clr-submit-btn::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
button.clr-submit-btn {
    width: 100%;
    color: #fff;
    background: #33AFBE;
    border: none;
    font-size: 22px;
    font-family: 'Inter';
    font-weight: 600;
    border-radius: 5px;
}
button.clr-submit-btn:hover {
    background: #18626E;
}

/* Password wrapper with eye icon */
.clr-password-wrapper {
    position: relative;
    width: 100%;
}

.clr-password-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.clr-password-icon.clr-password-icon-hidden {
    opacity: 0;
    visibility: hidden;
}

.clr-password-placeholder-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.clr-password-wrapper input[type="password"],
.clr-password-wrapper input[type="text"] {
    width: 100%;
}

.clr-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.clr-toggle-password:hover {
    opacity: 0.7;
}

.clr-toggle-password:focus {
    outline: 2px solid #217E8C;
    outline-offset: 2px;
    border-radius: 2px;
}

.clr-eye-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Focus styles for all input fields */
.clr-form-group input[type="text"]:focus,
.clr-form-group input[type="email"]:focus,
.clr-form-group input[type="tel"]:focus,
.clr-form-group input[type="password"]:focus,
.clr-form-group textarea:focus,
.clr-form-group select:focus {
    outline: none;
    box-shadow: 0px 6px 10px 0px #0000001F;
    background: #FFFFFF;
}

/* Focus styles for password input in wrapper */
.clr-password-wrapper input[type="password"]:focus,
.clr-password-wrapper input[type="text"]:focus {
    outline: none;
    box-shadow: 0px 6px 10px 0px #0000001F;
    background: #FFFFFF;
}

/* Field error messages */
.clr-field-error {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.clr-field-error.clr-error-visible {
    display: block;
    color: #e74c3c;
}

.clr-field-error.clr-success-visible {
    display: block;
    color: #217E8C;
}

.clr-form-group input.clr-input-error {
    border-color: #e74c3c;
}

.clr-form-group input.clr-input-error:focus {
    border-color: #e74c3c;
    box-shadow: 0px 6px 10px 0px rgba(231, 76, 60, 0.2);
}

.clr-form-group input.clr-input-success {
    border-color: #217E8C;
}

.clr-form-group input.clr-input-success:focus {
    border-color: #217E8C;
    box-shadow: 0px 6px 10px 0px rgba(33, 126, 140, 0.2);
}
button.clr-toggle-password {
    border: none;
}
button.clr-toggle-password:hover {
    background: transparent !important;
}
span.clr-password-icon img {
    width: 88%;
}
button.clr-toggle-password {
    background: transparent !important;
}

/* Auth Menu Shortcode Styles */
.clr-auth-menu {
    display: inline-flex;
    align-items: center;
    gap: 45px;
}

.clr-auth-menu-logged-out {
    flex-wrap: wrap;
}

.clr-register-btn {
    color: #217E8C;
}
.clr-login-btn {
    color: #217E8C;
}
.clr-auth-menu-logged-in {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.clr-user-avatar-wrapper {
    position: relative;
}

.clr-avatar-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    outline: none;
}

.clr-avatar-trigger:focus {
    outline: 2px solid #217E8C;
    outline-offset: 2px;
    border-radius: 50%;
}

.clr-user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clr-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* User Dropdown Styles */
.clr-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.clr-user-dropdown.clr-dropdown-active {
    display: block;
}

.clr-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #F0F0F0;
}

.clr-dropdown-header .clr-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    font-family: 'Inter', sans-serif;
    margin-bottom: 5px;
    line-height: 1.2;
}

.clr-dropdown-header .clr-user-email {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.clr-dropdown-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 0;
}

.clr-dropdown-menu {
    padding: 10px 0;
}

.clr-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s ease;
}

.clr-dropdown-item:hover {
    background-color: #F8F8F8;
}

.clr-dropdown-footer {
    background: #E1EEEF;
    padding: 15px 20px;
    text-align: center;
}

.clr-logout-btn {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s ease;
}

.clr-logout-btn:hover {
    opacity: 0.8;
}
.clr-auth-menu.clr-auth-menu-logged-out span {
    padding-right: 5px;
    position: relative;
    top: 2px;
}
.clr-auth-menu.clr-auth-menu-logged-out a {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter';
}
button.clr-avatar-trigger:hover {
    background: transparent;
}
button.clr-avatar-trigger {
    border: none;
}
button.clr-avatar-trigger:focus {
    background: transparent !important;
}

/* Stripe Payment Element Styles */
#clr-payment-element {
	margin-top: 20px;
}

#stripe-payment-element {
	padding: 20px;
	background: #fff;
	border: 1px solid #217E8C;
	border-radius: 4px;
	margin-top: 10px;
}

#stripe-payment-errors {
	margin-top: 10px;
}

#stripe-payment-errors .clr-error-message {
	color: #e74c3c;
	font-size: 14px;
	margin: 0;
	padding: 10px;
	background: #fee;
	border: 1px solid #e74c3c;
	border-radius: 4px;
}

/* Payment Success Page Styles */
.clr-payment-success-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 70vh;
	padding: 40px 20px;
	background: #f5f5f5;
}

.clr-payment-success-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 60px 40px;
	max-width: 600px;
	width: 100%;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.clr-success-icon {
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.clr-success-title {
	font-size: 32px;
	font-weight: 700;
	color: #080C14;
	margin: 0 0 20px 0;
	font-family: 'Inter', sans-serif;
}

.clr-success-message {
	font-size: 16px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 40px 0;
	font-family: 'Inter', sans-serif;
}

.clr-success-message strong {
	color: #080C14;
	font-weight: 600;
}

.clr-success-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.clr-btn {
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	border: 2px solid transparent;
}

.clr-btn-primary {
	background: #33AFBE;
	color: #ffffff;
	border-color: #33AFBE;
}

.clr-btn-primary:hover {
	background: #217E8C;
	border-color: #217E8C;
	color: #ffffff;
}

.clr-btn-secondary {
	background: #ffffff;
	color: #33AFBE;
	border-color: #33AFBE;
}

.clr-btn-secondary:hover {
	background: #f0f9fa;
	color: #217E8C;
	border-color: #217E8C;
}

@media (max-width: 768px) {
	.clr-payment-success-card {
		padding: 40px 30px;
	}
	
	.clr-success-title {
		font-size: 24px;
	}
	
	.clr-success-actions {
		flex-direction: column;
	}
	
	.clr-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Profile Page Styles */
.clr-profile-wrapper {
	max-width: 900px;
	margin: 40px auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clr-profile-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e0e0e0;
}

.clr-profile-avatar img {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.clr-profile-name h2 {
	margin: 0 0 5px 0;
	font-size: 24px;
	font-weight: 600;
	color: #080C14;
	font-family: 'Inter', sans-serif;
}

.clr-profile-name p {
	margin: 0;
	font-size: 14px;
	color: #666;
	font-family: 'Inter', sans-serif;
}

.clr-profile-section {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e0e0e0;
}

.clr-profile-section:last-of-type {
	border-bottom: none;
}

.clr-profile-section h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: #080C14;
	font-family: 'Inter', sans-serif;
}

.clr-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.clr-section-header h3 {
	margin-bottom: 5px;
}

.clr-password-changed,
.clr-current-plan {
	margin: 0;
	font-size: 14px;
	color: #666;
	font-family: 'Inter', sans-serif;
}

.clr-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.clr-form-group-full {
	grid-column: 1 / -1;
}

.clr-password-fields {
	margin-top: 20px;
}

.clr-password-hint {
	margin: 5px 0 0 0;
	font-size: 12px;
	color: #999;
	font-family: 'Inter', sans-serif;
}

.clr-plan-selection {
	margin-top: 20px;
}

.clr-plan-option {
	margin-bottom: 15px;
}

.clr-plan-option input[type="radio"] {
	display: none;
}

.clr-plan-option label {
	display: block;
	padding: 20px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
}

.clr-plan-option input[type="radio"]:checked + label {
	border-color: #33AFBE;
	background: #f0f9fa;
}

.clr-plan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.clr-plan-name {
	font-size: 16px;
	font-weight: 600;
	color: #080C14;
}

.clr-plan-expiry {
	font-size: 12px;
	color: #666;
}

.clr-plan-price {
	font-size: 20px;
	font-weight: 700;
	color: #33AFBE;
	margin: 10px 0 5px 0;
}

.clr-plan-billing {
	font-size: 14px;
	color: #666;
}

.clr-cancel-subscription {
	margin-top: 20px;
}

.clr-btn-danger {
	background: #dc3545;
	color: #ffffff;
	border-color: #dc3545;
}

.clr-btn-danger:hover {
	background: #c82333;
	border-color: #bd2130;
	color: #ffffff;
}

.clr-profile-actions {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

/* Modal Styles */
.clr-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.clr-modal-content {
	background: #ffffff;
	padding: 30px;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.clr-modal-content h3 {
	margin: 0 0 15px 0;
	font-size: 20px;
	font-weight: 600;
	color: #080C14;
	font-family: 'Inter', sans-serif;
}

.clr-modal-content p {
	margin: 0 0 15px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	font-family: 'Inter', sans-serif;
}

.clr-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 25px;
}

@media (max-width: 768px) {
	.clr-profile-wrapper {
		padding: 20px;
		margin: 20px;
	}
	
	.clr-form-grid {
		grid-template-columns: 1fr;
	}
	
	.clr-section-header {
		flex-direction: column;
		gap: 15px;
	}
	
	.clr-profile-actions {
		flex-direction: column;
	}
	
	.clr-btn {
		width: 100%;
	}
}