/* Softalyn themed package select + attachment field */

/* Light mode footer fields — beat dark footer chrome */
html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-form-in input,
html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-form-in textarea,
html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-form-in .form-control:not(.soft-select),
html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-section .form-group .form-control:not(.soft-select) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0b1f3f !important;
  -webkit-text-fill-color: #0b1f3f !important;
  border: 1px solid rgba(16, 48, 110, 0.18) !important;
  color-scheme: light !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-form-in input::placeholder,
html[data-theme="light"] body.softalyn-home footer.adv-footer .ftr-form-in textarea::placeholder {
  color: #5a7194 !important;
  -webkit-text-fill-color: #5a7194 !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.softalyn-home footer.adv-footer #top-footer-submit {
  background-image: linear-gradient(100deg, #2ec8ff, #3a63ff 48%, #b44dff) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.soft-select-wrap,
.soft-file-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 0.85rem;
}

.soft-select-wrap .soft-select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #5ec8ff;
  font-size: 0.9rem;
  pointer-events: none;
}

.soft-select,
select.soft-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.85rem 2.6rem 0.85rem 2.55rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(94, 200, 255, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(12, 24, 52, 0.92), rgba(8, 16, 36, 0.96))
    padding-box,
    linear-gradient(135deg, rgba(94, 200, 255, 0.55), rgba(107, 61, 244, 0.45))
    border-box !important;
  background-color: #0c1834 !important;
  color: #e8f1ff !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, #5ec8ff 50%),
    linear-gradient(135deg, #5ec8ff 50%, transparent 50%),
    linear-gradient(180deg, rgba(12, 24, 52, 0.92), rgba(8, 16, 36, 0.96)) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
}

.soft-select:hover,
select.soft-select:hover {
  border-color: rgba(94, 200, 255, 0.55) !important;
}

.soft-select:focus,
select.soft-select:focus {
  outline: none !important;
  border-color: rgba(94, 200, 255, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.28) !important;
}

.soft-select option,
.soft-select optgroup {
  background: #0c1834;
  color: #e8f1ff;
}

.lf-field--select > i,
.lf-field .soft-select-icon {
  color: #5ec8ff;
}

.lf-field.lf-field--select {
  position: relative;
}

.lf-field.lf-field--select .soft-select-wrap {
  margin: 0;
}

.lf-field.lf-field--select .soft-select-icon {
  display: none;
}

.lf-field.lf-field--select .soft-select {
  padding-left: 2.55rem !important;
}

.soft-file {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed rgba(94, 200, 255, 0.4);
  background: rgba(10, 22, 48, 0.72);
  color: #c9daf5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.soft-file:hover,
.soft-file:focus-within {
  border-color: rgba(94, 200, 255, 0.8);
  background: rgba(16, 36, 78, 0.85);
  box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.2);
}

.soft-file i {
  color: #5ec8ff;
  font-size: 1rem;
  flex: 0 0 auto;
}

.soft-file__text {
  font-size: 0.88rem;
  line-height: 1.35;
  color: #d7e6ff;
}

.soft-file__text em {
  font-style: normal;
  opacity: 0.65;
  font-size: 0.8rem;
}

.soft-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.soft-file__name {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #7fd0ff;
  min-height: 1em;
}

.contact .soft-select-wrap,
.contact .soft-file-wrap,
.ftr-form .soft-select-wrap,
.ftr-form .soft-file-wrap,
.popup-form .soft-select-wrap,
.popup-form .soft-file-wrap {
  margin-bottom: 0.9rem;
}

.contact .soft-select,
.ftr-form .soft-select,
.popup-form .soft-select {
  min-height: 48px;
}

/* Contact form uses white inputs — keep select readable (dark text on white) */
body.softalyn-home .contact .soft-select,
body.softalyn-home .contact select.soft-select,
body.softalyn-home .contact select.form-control.soft-select,
html[data-theme="dark"] body.softalyn-home .contact .soft-select,
html[data-theme="dark"] body.softalyn-home .contact select.soft-select,
html[data-theme="dark"] body.softalyn-home .contact select.form-control,
html[data-theme="light"] body.softalyn-home .contact .soft-select,
html[data-theme="light"] body.softalyn-home .contact select.soft-select {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a4fd6 50%),
    linear-gradient(135deg, #1a4fd6 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  color: #0a1428 !important;
  -webkit-text-fill-color: #0a1428 !important;
  border: 1px solid rgba(26, 79, 214, 0.28) !important;
  box-shadow: none !important;
}

body.softalyn-home .contact .soft-select option,
body.softalyn-home .contact .soft-select optgroup,
html[data-theme="dark"] body.softalyn-home .contact .soft-select option,
html[data-theme="dark"] body.softalyn-home .contact .soft-select optgroup {
  background: #ffffff !important;
  color: #0a1428 !important;
  -webkit-text-fill-color: #0a1428 !important;
}

body.softalyn-home .contact .soft-select-wrap .soft-select-icon,
html[data-theme="dark"] body.softalyn-home .contact .soft-select-wrap .soft-select-icon {
  color: #1a4fd6 !important;
}

body.softalyn-home .contact .soft-file,
html[data-theme="dark"] body.softalyn-home .contact .soft-file {
  background: #ffffff !important;
  border-color: rgba(26, 79, 214, 0.35) !important;
  color: #0a1428 !important;
}

body.softalyn-home .contact .soft-file__text,
html[data-theme="dark"] body.softalyn-home .contact .soft-file__text {
  color: #334155 !important;
}

body.softalyn-home .contact .soft-file i,
html[data-theme="dark"] body.softalyn-home .contact .soft-file i {
  color: #1a4fd6 !important;
}

/* Also fix contrast-fix paint on soft-select inside contact */
html[data-theme="dark"] body.softalyn-home .contact .soft-select,
html[data-theme="dark"] body.softalyn-home .contact select[name="package"],
html[data-theme="dark"] body.softalyn-home .contact select[name="budget"] {
  color: #0a1428 !important;
  -webkit-text-fill-color: #0a1428 !important;
}

.popup-form .soft-select,
.popup-form .soft-file {
  font-size: 0.86rem !important;
}

html[data-theme="light"] .soft-select,
html[data-theme="light"] select.soft-select {
  background:
    linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a4fd6 50%),
    linear-gradient(135deg, #1a4fd6 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  border-color: rgba(26, 79, 214, 0.28) !important;
  color: #0b1b3a !important;
  box-shadow: 0 1px 0 rgba(15, 40, 90, 0.04);
}

html[data-theme="light"] .soft-select option,
html[data-theme="light"] .soft-select optgroup {
  background: #fff;
  color: #0b1b3a;
}

html[data-theme="light"] .soft-select-wrap .soft-select-icon,
html[data-theme="light"] .soft-file i {
  color: #1a4fd6;
}

html[data-theme="light"] .soft-file {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(26, 79, 214, 0.35);
  color: #1e293b;
}

html[data-theme="light"] .soft-file__text {
  color: #334155;
}

html[data-theme="light"] .soft-file__name {
  color: #1a4fd6;
}

html[data-theme="light"] .soft-file:hover,
html[data-theme="light"] .soft-file:focus-within {
  border-color: rgba(26, 79, 214, 0.7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.14);
}
