/*!
Theme Name: finora
Description: Description
Version: 1.0.5
Tested up to: 8.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: finora
*/

/* Newsletter Form - Contact Form 7 Styling */
#wpadminbar {
	z-index: 999999999;
    bottom: 1px;
    position: fixed;
	top:unset;
}
.newsletter_form .wpcf7-form {
  width: 100%;
}

.newsletter_form .subscribe {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Remove CF7 default paragraph wrapper styling */
.newsletter_form .subscribe p {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.newsletter_form .subscribe br {
  display: none;
}

/* Email input styling */
.newsletter_form .subscribe .wpcf7-email {
	border-radius: 8rem;
    background: #ffffff33;
    display: flex;
    width: 30rem;
    height: 5.2rem;
    padding: 1.4rem 2.4rem;
    color: #fff;
    border: none;
    margin-right: 0.8rem;
}

.newsletter_form .wpcf7-email:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Submit button styling - match .button.button_white */
.newsletter_form .wpcf7-submit {
	color: #000;
    font-weight: 500;
	background: var(--white);
    border: 0.1rem solid var(--white);
	height: 5.2rem;
    display: flex;
    align-items: center;
    padding: 0 2.4rem;
    border-radius: 10rem;
    gap: 0.8rem;
    width: fit-content;
    white-space: nowrap;
	width: 100%;
}

/* Add arrow icon to submit button */
.newsletter_form .wpcf7-submit::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('./img/arrow-right.svg') no-repeat center center;
  background-size: contain;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.newsletter_form .wpcf7-submit:hover {
  background: #f0f0f0;
}

.newsletter_form .wpcf7-submit:active {
  transform: translateY(0);
}

/* Hide CF7 spinner */
.newsletter_form .wpcf7-spinner {
  display: none !important;
}

/* Form control wrapper */
.newsletter_form .wpcf7-form-control-wrap {
  display: block;
  flex: 1;
}

/* Response messages */
.newsletter_form .wpcf7-response-output {
  margin-top: 15px;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  border: none !important;
  font-size: 14px;
}

.newsletter_form .wpcf7-mail-sent-ok {
  background: rgba(100, 255, 100, 0.3);
  border: 1px solid rgba(100, 255, 100, 0.5) !important;
}

.newsletter_form .wpcf7-validation-errors,
.newsletter_form .wpcf7-acceptance-missing {
  background: rgba(255, 100, 100, 0.3);
  border: 1px solid rgba(255, 100, 100, 0.5) !important;
}

/* Validation error tips */
.newsletter_form .wpcf7-not-valid-tip {
  color: #fff;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  position:absolute;
}

/* Loading state */
.newsletter_form .wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.7;
  cursor: wait;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .newsletter_form .subscribe,
  .newsletter_form .subscribe p {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter_form .wpcf7-email,
  .newsletter_form .wpcf7-submit {
    width: 100%;
  }
}

/* Contact Form - Contact Form 7 Styling */
.from {
  padding-left: 80px;
}

/* Reset CF7 default paragraph/br styling */
.from .wpcf7-form p {
  margin: 0;
  padding: 0;
}

.from .wpcf7-form br {
  display: none;
}

/* Row gap for form elements */
.from .row_gap_16 {
  row-gap: 16px;
}

/* Form input wrapper */
.from .f-cnt-area {
  margin-bottom: 0;
}

/* Form control styling for inputs and textarea */
.from .wpcf7-text,
.from .wpcf7-email,
.from .wpcf7-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background: #fff;
  transition: all 0.3s ease;
}

.from .wpcf7-text:focus,
.from .wpcf7-email:focus,
.from .wpcf7-textarea:focus {
  outline: none;
  border-color: #00004A;
  box-shadow: 0 0 0 3px rgba(0, 0, 74, 0.1);
}

.from .wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

.from .wpcf7-text::placeholder,
.from .wpcf7-email::placeholder,
.from .wpcf7-textarea::placeholder {
  color: #5b5b66;
}

/* Form control wrapper */
.from .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Consent checkboxes */
.from .consent-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.from .consent-text .wpcf7-list-item {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.from .consent-text .wpcf7-list-item-label {
  display: none;
}

.from .consent-text input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.from .consent-text span {
    color: #646464;
    letter-spacing: -0.04em;
    line-height: 150%;
    font-size: 1.4rem;
}

.from .consent-text a {
  color: #00004A;
  text-decoration: underline;
}

.from .consent-text a:hover {
  color: #000066;
}

.from .consent-marketing {
  margin-bottom: 30px;
}

/* Submit button styling */
.from .wpcf7-submit {
  color: #fff;
  font-weight: 600;
  background: #00004A;
  border: none;
  height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 40px;
  padding-right: 60px;
  border-radius: 100px;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 16px;
}

/* Add arrow icon to submit button */
.from .wpcf7-submit::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('./img/arrow-right.svg') no-repeat center center;
  background-size: contain;
  filter: brightness(0) invert(1);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.from .wpcf7-submit:hover {
  background: #000066;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 74, 0.2);
}

.from .wpcf7-submit:active {
  transform: translateY(0);
}

/* Hide CF7 spinner */
.from .wpcf7-spinner {
  display: none !important;
}

/* Validation error tips */
.from .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Response messages */
.from .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  border: none !important;
  font-size: 14px;
}

.from .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb !important;
}

.from .wpcf7-validation-errors,
.from .wpcf7-acceptance-missing {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb !important;
}

/* Loading state */
.from .wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.7;
  cursor: wait;
}

.from .wpcf7-form.submitting .wpcf7-submit:hover {
  transform: none;
}

.page-template-page-contact .wpcf7-submit {
    height: 5.2rem;
    display: flex;
    align-items: center;
    padding: 0 2.4rem;
    color: #f7f8f8;
    background: #0000fd;
    border-radius: 10rem;
    gap: 0.8rem;
    border: 0.1rem solid #0000fd;
    width: fit-content;
    white-space: nowrap;
}

.page-template-page-contact .wpcf7-form .wpcf7-text {
    width: 100%!important;
    padding: 15px 20px!important;
    border: 1px solid #E0E0E0!important;
    border-radius: 8px!important;
    background: #fff!important;
    transition: all 0.3s ease!important;
    color: #646464!important;
    height: 5.6rem!important;
    font-size: 1.6rem!important;
}

.page-template-page-contact .wpcf7-form textarea {
    color: #646464!important;
    font-size: 1.6rem!important;
}

.from .consent-text a {
    color: #0000fd;
    text-decoration: underline;
}


/* Mobile responsive */
@media (max-width: 991px) {
  .from {
    padding-left: 40px;
  }
}

@media (max-width: 767px) {
  .from {
    padding-left: 0;
    margin-top: 40px;
  }
  
  .from .wpcf7-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Global Form Input Styles */
