/*
Theme Name: Atvērt Savu Gaismu
Theme URI: http://atvertsavugaismu.lv
Author: SIA Ambex
Author URI: https://ambex.lv/
Version: 1.4.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base form font */
.wpcf7 {
    font-family: Georgia, serif;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(30, 27, 75, 0.20);
    font-family: Georgia, serif;
    outline: none;
    transition: border-color 150ms ease, transform 200ms ease;
    font-size: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form textarea:hover {
    border-color: #c8b3d0;
    transform: scaleX(1.02);
}

/* Focus effects */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #c8b3d0;
    box-shadow: 0 0 0 3px rgba(200, 179, 208, 0.5);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #AFB0B3;
    opacity: 1;
}

.wpcf7-form input:focus::placeholder,
.wpcf7-form textarea:focus::placeholder {
    opacity: 0;
}

/* Submit button wrapper - center everything including spinner */
.wpcf7-form .cf7-submit-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Submit button */
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1.3rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #1e1b4b;
    color: #ffffff;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    font-family: Georgia, serif;
}

/* Button hover */
.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-3px);
	background-color: #34315d; 
}

.wpcf7-form .wpcf7-submit:focus {
    border: none;
	box-shadow: none;
}

/* Hide the spinner OR style it to work with centering */
.wpcf7-form .wpcf7-spinner {
    margin: 0;
	left: 10%;
}

/* Grid responsive */
@media (min-width: 768px) {
    .cf7-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Validation */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* Response messages */
.wpcf7-form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    border: 1px solid #10b981;
    background-color: #d1fae5;
    color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border: 1px solid #dc2626;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Optional: hover effect (for fun) */
.wpcf7-form .wpcf7-response-output:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Keyframe for smooth fade-in */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }
    
    .wpcf7-form .wpcf7-submit {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Reģistrēšanās un ielogošanās formas stili */
.xoo-aff-label {
	display: block!important;
    font-weight: 500!important;
    color: #333333;
    margin-bottom: 0.25rem!important;
    font-size: 14px!important;
    line-height: 20px!important;
}

.xoo-aff-group input[type="text"],
.xoo-aff-group input[type="password"],
.xoo-aff-group input[type="email"] {
	    width: 100%!important;
    padding: 0.75rem 1rem!important;
    border: 1px solid rgba(30, 27, 75, 0.20)!important;
    outline: none!important;
    font-family: Georgia, serif!important;
}

.xoo-aff-group input[type="text"]:focus,
.xoo-aff-group input[type="password"]:focus,
.xoo-aff-group input[type="email"]:focus {
	outline: none!important;
    border-color: #c8b3d0!important;
    box-shadow: 0 0 0 3px rgba(200, 179, 208, 0.5)!important;
    transition: border-color 150ms ease, box-shadow 150ms ease!important;
}

.xoo-el-form-label span {
    font-size: 0.875rem!important;
}

.xoo-el-form-container button.btn.button.xoo-el-action-btn {
    padding: 1.5rem 2.5rem!important;
    font-weight: 500!important;
    font-size: 1.3rem!important;
    border-radius: 6px!important;
    text-decoration: none!important;
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1)!important;
    will-change: transform!important;
	max-width: 20rem!important;
	width: auto!important;
    margin-left: auto!important; 
    margin-right: auto!important; 
}

@media (max-width: 767px) {
    .xoo-el-form-container button.btn.button.xoo-el-action-btn {
        font-size: 1rem!important;
        padding: 0.75rem 1.5rem!important;
    }
}

.xoo-el-form-container button.btn.button.xoo-el-action-btn:hover {
    transform: translateY(-3px)!important;
}

.xoo-el-lostpw-tgr {
	color: #1e1b4b!important;
	 font-size: 0.875rem!important; 
	text-decoration-color: #c8b3d0 !important;
}

.xoo-el-lostpw-tgr:hover {
	color: #c8b3d0 !important;
}

.xoo-security {
	font-size: 0.875rem!important; 
	font-weight: 500!important;
	color: #333333!important;
	text-decoration-color: #c8b3d0 !important;
}
.xoo-security a {
	color: #1e1b4b!important;
}

.xoo-security a:hover {
	color: #c8b3d0 !important;
}


.xoo-el-login-tgr {
    order: 0!important;
}

.xoo-el-reg-tgr {
    order: 1!important;
}
.xoo-el-header {
    text-align: center!important; 
}

.xoo-el-tabs {
    display: flex!important;
    justify-content: center!important; 
    margin-top: 2rem!important;
    padding: 5px!important;
    list-style: none!important;
	width: auto!important;
	max-width: 300px!important;
	 margin-left: auto!important; 
    margin-right: auto!important; 
	border: 1px solid #D1CDCD!important;
	border-radius: 9999px!important;
}

.xoo-el-tabs li {
    padding-left: 1.25rem!important; 
    padding-right: 1.25rem!important; 
    padding-top: 0.5rem!important;
    padding-bottom: 0.5rem!important;
    font-size: 0.875rem!important; 
    font-weight: 500!important;
    border-radius: 9999px!important; 
    cursor: pointer!important; 
    background-color: #1e1b4b!important; 
    color: grey!important; 
    outline: none!important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease!important;
	width: 200px!important;
}

.xoo-el-tabs li.xoo-el-active {
    background-color: #1e1b4b!important; 
	color: #ffffff!important;
}

.xoo-el-tabs li:focus {
    outline: none!important; 
}

.xoo-aff-group label {
    font-weight: 500!important;
}

#contact-individualie .wpcf7-submit {
    display: block;
    margin: 1rem auto 0;
}

@media (max-width: 767px) {
    button.xoo-el-action-btn.xoo-el-login-btn,
    button.xoo-el-action-btn.xoo-el-reg-btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        max-width: 90% !important;
    }
}