/*
 * Contact Page Inline Styles
 * Extracted from contact.html for better organization
 */

body {transition: opacity ease-in 0.2s; } 
body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; }

.wf-force-outline-none[tabindex="-1"]:focus{outline:none;}

.lf-progress {
  -webkit-appearance: none;
  -moz-apperance: none;
  width: 100%;
  /* margin: 0 10px; */
  height: 4px;
  border-radius: 3px;
  cursor: pointer;
}
.lf-progress:focus {
  outline: none;
  border: none;
}
.lf-progress::-moz-range-track {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
.lf-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress::-moz-range-thumb {
  -moz-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress::-ms-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.lf-progress::-ms-fill-lower {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-fill-upper {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-thumb {
  border: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress:focus::-ms-fill-lower {
  background: #ccc;
}
.lf-progress:focus::-ms-fill-upper {
  background: #ccc;
}
.lf-player-container :focus {
  outline: 0;
}
.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-player-btn-container {
  display: flex;
  align-items: center;
}
.lf-player-btn {
  cursor: pointer;
  fill: #999;
  width: 14px;
}

.lf-player-btn.active {
  fill: var(--color-gray-text);
}

.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  background-color: var(--color-white);
  opacity: 1;

  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  padding: 10px;
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-arrow {
  position: absolute;
  z-index: -1;
  content: '';
  bottom: -9px;
  border-style: solid;
  border-width: 10px 10px 0px 10px;
}

.lf-left-align,
.lf-left-align .lfarrow {
  left: 0;
  right: unset;
}

.lf-right-align,
.lf-right-align .lf-arrow {
  right: 0;
  left: unset;
}

.lf-text-input {
  border: 1px #ccc solid;
  border-radius: 5px;
  padding: 3px;
  width: 60px;
  margin: 0;
}

.lf-color-picker {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 90px;
}

.lf-color-selectors {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lf-color-component {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.lf-color-component strong {
  width: 40px;
}

.lf-color-component input[type='range'] {
  margin: 0 0 0 10px;
}

.lf-color-component input[type='number'] {
  width: 50px;
  margin: 0 0 0 10px;
}

.lf-color-preview {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
}

.lf-preview {
  height: 60px;
  width: 60px;
}

.lf-popover-snapshot {
  width: 150px;
}
.lf-popover-snapshot h5 {
  margin: 5px 0 10px 0;
  font-size: 0.75rem;
}
.lf-popover-snapshot a {
  display: block;
  text-decoration: none;
}
.lf-popover-snapshot a:before {
  content: '⥼';
  margin-right: 5px;
}
.lf-popover-snapshot .lf-note {
  display: block;
  margin-top: 10px;
  color: #999;
}
.lf-player-controls > div {
  margin-right: 5px;
  margin-left: 5px;
}
.lf-player-controls > div:first-child {
  margin-left: 0px;
}
.lf-player-controls > div:last-child {
  margin-right: 0px;
}

.lf-progress {
  -webkit-appearance: none;
  -moz-apperance: none;
  width: 100%;
  /* margin: 0 10px; */
  height: 4px;
  border-radius: 3px;
  cursor: pointer;
}
.lf-progress:focus {
  outline: none;
  border: none;
}
.lf-progress::-moz-range-track {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
.lf-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress::-moz-range-thumb {
  -moz-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress::-ms-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.lf-progress::-ms-fill-lower {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-fill-upper {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-thumb {
  border: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}
.lf-progress:focus::-ms-fill-lower {
  background: #ccc;
}
.lf-progress:focus::-ms-fill-upper {
  background: #ccc;
}
.lf-player-container :focus {
  outline: 0;
}
.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-player-btn-container {
  display: flex;
  align-items: center;
}
.lf-player-btn {
  cursor: pointer;
  fill: #999;
  width: 14px;
}

.lf-player-btn.active {
  fill: var(--color-gray-text);
}

.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  background-color: var(--color-white);
  opacity: 1;

  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  padding: 10px;
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-arrow {
  position: absolute;
  z-index: -1;
  content: '';
  bottom: -9px;
  border-style: solid;
  border-width: 10px 10px 0px 10px;
}

.lf-left-align,
.lf-left-align .lfarrow {
  left: 0;
  right: unset;
}

.lf-right-align,
.lf-right-align .lf-arrow {
  right: 0;
  left: unset;
}

.lf-text-input {
  border: 1px #ccc solid;
  border-radius: 5px;
  padding: 3px;
  width: 60px;
  margin: 0;
}

.lf-color-picker {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 90px;
}

.lf-color-selectors {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lf-color-component {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.lf-color-component strong {
  width: 40px;
}

.lf-color-component input[type='range'] {
  margin: 0 0 0 10px;
}

.lf-color-component input[type='number'] {
  width: 50px;
  margin: 0 0 0 10px;
}

.lf-color-preview {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
}

.lf-preview {
  height: 60px;
  width: 60px;
}

.lf-popover-snapshot {
  width: 150px;
}
.lf-popover-snapshot h5 {
  margin: 5px 0 10px 0;
  font-size: 0.75rem;
}
.lf-popover-snapshot a {
  display: block;
  text-decoration: none;
}
.lf-popover-snapshot a:before {
  content: '⥼';
  margin-right: 5px;
}
.lf-popover-snapshot .lf-note {
  display: block;
  margin-top: 10px;
  color: #999;
}
.lf-player-controls > div {
  margin-right: 5px;
  margin-left: 5px;
}
.lf-player-controls > div:first-child {
  margin-left: 0px;
}
.lf-player-controls > div:last-child {
  margin-right: 0px;
}
/* ============================================
   CONTACT PAGE ENHANCEMENTS
   ============================================ */

/* RTL Support for Contact Page */
.contact-area {
    direction: rtl !important;
    text-align: right !important;
}

.contact-wrap {
    direction: rtl !important;
}

.contact-left {
    direction: rtl !important;
    text-align: right !important;
}

.contact-left h2 {
    text-align: right !important;
    direction: rtl !important;
}

.contact-left p {
    text-align: right !important;
    direction: rtl !important;
}

/* Contact Info Items */
.contact-info-item {
    direction: rtl !important;
    text-align: right !important;
    margin-bottom: 32px !important;
    padding: 24px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(107, 203, 61, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateX(-4px) !important;
}

.contact-info-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: rgba(40, 40, 40, 1) !important;
    margin-bottom: 12px !important;
    text-align: right !important;
    direction: rtl !important;
    position: relative !important;
    padding-right: 24px !important;
}

.contact-info-title::before {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 20px !important;
    background: var(--color-primary, #6BCB3D) !important;
    border-radius: 2px !important;
}

.contact-info-item .section-content {
    text-align: right !important;
    direction: rtl !important;
    line-height: 1.8 !important;
    color: rgba(60, 60, 60, 0.9) !important;
    margin: 0 !important;
}

.contact-info-link {
    text-align: right !important;
    direction: rtl !important;
    color: var(--color-primary, #6BCB3D) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.contact-info-link:hover {
    color: rgba(107, 203, 61, 0.8) !important;
    text-decoration: underline !important;
    transform: translateX(-3px) !important;
}

/* Form Enhancements */
.form-main {
    direction: rtl !important;
    text-align: right !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.form {
    direction: rtl !important;
}

.single-block {
    direction: rtl !important;
    text-align: right !important;
    margin-bottom: 24px !important;
}

.input-label {
    text-align: right !important;
    direction: rtl !important;
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: rgba(40, 40, 40, 1) !important;
    font-size: 15px !important;
}

.form-input,
.form-select {
    direction: rtl !important;
    text-align: right !important;
    padding: 14px 20px 14px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    color: rgba(40, 40, 40, 1) !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-input::placeholder {
    text-align: right !important;
    direction: rtl !important;
    color: rgba(0, 0, 0, 0.4) !important;
}

.form-input:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--color-primary, #6BCB3D) !important;
    box-shadow: 0 0 0 3px rgba(107, 203, 61, 0.1) !important;
    background: #FFFFFF !important;
}

.form-input.message {
    min-height: 120px !important;
    resize: vertical !important;
    text-align: right !important;
    direction: rtl !important;
}

.input-select {
    direction: rtl !important;
}

.form-select {
    direction: rtl !important;
    text-align: right !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-position: left 16px center !important;
    background-repeat: no-repeat !important;
    padding-right: 20px !important;
    padding-left: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.btn-submit {
    direction: rtl !important;
    text-align: center !important;
    background: var(--color-primary, #6BCB3D) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.btn-submit:hover {
    background: rgba(107, 203, 61, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 203, 61, 0.3) !important;
}

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

/* Success and Error Messages */
.success-message,
.error-message {
    direction: rtl !important;
    text-align: right !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
    font-size: 15px !important;
}

.success-message {
    background: rgba(107, 203, 61, 0.1) !important;
    color: rgba(107, 203, 61, 1) !important;
    border: 1px solid rgba(107, 203, 61, 0.2) !important;
}

.error-message {
    background: rgba(255, 0, 0, 0.1) !important;
    color: rgba(200, 0, 0, 1) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

/* Map Container */
.map-container {
    direction: ltr !important; /* Maps should stay LTR */
    margin-top: 60px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.map-container iframe {
    display: block !important;
    width: 100% !important;
    border: none !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-wrap {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .contact-info-item {
        padding: 20px !important;
    }
    
    .form-main {
        padding: 24px !important;
    }
}

@media (max-width: 768px) {
    .contact-info-item {
        padding: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .contact-info-title {
        font-size: 16px !important;
        padding-right: 20px !important;
    }
    
    .contact-info-title::before {
        width: 3px !important;
        height: 16px !important;
    }
    
    .form-input,
    .form-select {
        padding: 12px 16px 12px 12px !important;
        font-size: 14px !important;
    }
    
    .btn-submit {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
    
    .map-container {
        margin-top: 40px !important;
        border-radius: 12px !important;
    }
}

/* ========== NEW CONTACT PAGE STYLES ========== */
.contact-hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(105, 195, 80, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.contact-content-section {
    padding-top: 60px;
    padding-bottom: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-title {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--dark--100);
    margin: 0 0 32px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(105, 195, 80, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark--100);
}

.form-input,
.form-textarea {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 16px;
    padding: 14px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dark--100);
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(105, 195, 80, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    background: var(--color-primary);
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(105, 195, 80, 0.2);
}

.contact-submit-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 195, 80, 0.3);
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(-4px);
}

.contact-info-wrapper {
    background: linear-gradient(135deg, rgba(105, 195, 80, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(105, 195, 80, 0.1);
}

.contact-info-title {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--dark--100);
    margin: 0 0 32px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(105, 195, 80, 0.2);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(105, 195, 80, 0.1);
    border-color: rgba(105, 195, 80, 0.2);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(105, 195, 80, 0.1);
    border-radius: 12px;
    color: var(--color-primary);
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark--100);
    margin: 0 0 8px 0;
}

.contact-info-text {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 16px;
    color: var(--color-gray-text-dark);
    margin: 0 0 4px 0;
    line-height: 1.6;
}

.contact-info-text:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .contact-content-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 24px;
    }

    .contact-form-title,
    .contact-info-title {
        font-size: 24px;
    }

    .contact-info-item {
        padding: 20px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
    }

    .contact-info-icon svg {
        width: 20px;
        height: 20px;
    }
}
