/* Contact Form 7 Styles - Aljoud Theme */
/* Add this CSS to your theme's Additional CSS or in style.css */

/* Form Container */
.wpcf7-form,
.wpcf7-form .aljoud-form-group,
.wpcf7-form .aljoud-form-row {
  font-family: "Tajawal", sans-serif;
}

/* Form Group */
.aljoud-form-group {
  margin-bottom: 24px;
}

.aljoud-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 8px;
  text-align: right;
}

body[dir="ltr"] .aljoud-form-group label,
body.lang-ltr .aljoud-form-group label {
  text-align: left;
}

/* Form Row (for side-by-side fields) */
.aljoud-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .aljoud-form-row {
    grid-template-columns: 1fr;
  }
}

/* Input Fields */
.aljoud-form-input,
.aljoud-form-select,
.aljoud-form-textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border, #e0e0e0);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Tajawal", sans-serif;
  transition: all 0.3s ease;
  background: var(--bg-white, #ffffff);
  color: var(--text-dark, #1a1a1a);
  box-sizing: border-box;
}

body[dir="ltr"] .aljoud-form-input,
body.lang-ltr .aljoud-form-input,
body[dir="ltr"] .aljoud-form-select,
body.lang-ltr .aljoud-form-select,
body[dir="ltr"] .aljoud-form-textarea,
body.lang-ltr .aljoud-form-textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.aljoud-form-input:focus,
.aljoud-form-select:focus,
.aljoud-form-textarea:focus {
  outline: none;
  border-color: var(--primary, #015a58);
  box-shadow: 0 0 0 4px rgba(1, 90, 88, 0.1);
}

.aljoud-form-input::placeholder,
.aljoud-form-textarea::placeholder {
  color: rgba(102, 102, 102, 0.6);
}

/* Select Dropdown */
.aljoud-form-select {
  cursor: pointer;
  appearance: none;
  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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
  padding-left: 50px;
  padding-right: 20px;
}

body[dir="ltr"] .aljoud-form-select,
body.lang-ltr .aljoud-form-select {
  background-position: right 20px center;
  padding-right: 50px;
  padding-left: 20px;
}

/* Textarea */
.aljoud-form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "Tajawal", sans-serif;
}

body[dir="ltr"] .aljoud-form-textarea,
body.lang-ltr .aljoud-form-textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Submit Button */
.aljoud-form-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient, linear-gradient(135deg, #015a58 0%, #017a77 100%));
  color: var(--text-white, #ffffff);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Tajawal", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  position: relative;
}

body[dir="ltr"] .aljoud-form-submit,
body.lang-ltr .aljoud-form-submit {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  flex-direction: row-reverse;
}

.aljoud-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(1, 90, 88, 0.3);
}

/* Paper airplane icon using Font Awesome */
.aljoud-form-submit::after {
  content: "\f1d8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  display: inline-block;
}

body[dir="ltr"] .aljoud-form-submit::after,
body.lang-ltr .aljoud-form-submit::after {
  order: -1;
  transform: scaleX(-1);
}

/* Validation Styles */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

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

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.wpcf7-validation-errors {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.wpcf7-mail-sent-ok {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* Spinner/Ajax Loading */
.wpcf7-spinner {
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .aljoud-form-input,
  .aljoud-form-select,
  .aljoud-form-textarea {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .aljoud-form-submit {
    padding: 14px 24px;
    font-size: 15px;
  }
}

