/*
 Theme Name:   Basel Child
 Description:  Basel Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     basel
 Version:      1.0.0
 Text Domain:  basel-child
*/


/* Your customizations starts here */
/* CARD general */
/* ===== CARD GENERAL ===== */

.vsw-oferta-foto-form {
  max-width: 100%;
  margin: 40px auto;
  padding: 32px 32px 28px;
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  font-family: inherit;
}

/* Header */

.vsw-oferta-header {
  text-align: left;
  margin-bottom: 24px;
}

.vsw-oferta-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.vsw-oferta-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ===== LAYOUT 2 COLOANE ===== */

.vsw-oferta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.vsw-oferta-col {
   flex: 1 1 1px; 
}

.vsw-oferta-field {
  margin-bottom: 14px;
}

/* ===== LABELS + CÂMPURI ===== */

.vsw-oferta-foto-form label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  display: inline-block;
  color: #111827;
}

.vsw-oferta-foto-form input[type="text"],
.vsw-oferta-foto-form input[type="tel"],
.vsw-oferta-foto-form input[type="email"],
.vsw-oferta-foto-form select,
.vsw-oferta-foto-form textarea {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  background-color: #f9fafb;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.vsw-oferta-foto-form textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}

/* Placeholder */

.vsw-oferta-foto-form input::placeholder,
.vsw-oferta-foto-form textarea::placeholder {
  color: #9ca3af;
}

/* Focus */

.vsw-oferta-foto-form input[type="text"]:focus,
.vsw-oferta-foto-form input[type="tel"]:focus,
.vsw-oferta-foto-form input[type="email"]:focus,
.vsw-oferta-foto-form select:focus,
.vsw-oferta-foto-form textarea:focus {
  border-color: #ff5a0a;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 90, 10, 0.2);
}

/* Select – să arate modern, cu săgeată */

.vsw-oferta-foto-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%),
                    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ===== RADIO MONOFAZAT / TRIFAZAT – STIL BUTOANE ===== */

.vsw-radio-group .wpcf7-form-control {
  display: inline-block;
}

.vsw-radio-group .wpcf7-list-item {
  margin: 0 8px 0 0;
}

.vsw-radio-group .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  background-color: #f9fafb;
  color: #111827;
  transition: all 0.15s ease;
}

.vsw-radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vsw-radio-group .wpcf7-list-item-label {
  display: inline-block;
}

/* radio selectat */

.vsw-radio-group input[type="radio"]:checked + .wpcf7-list-item-label {
  background-color: #ff5a0a;
  border-color: #ff5a0a;
  color: #ffffff;
}

/* ===== CONSIMȚĂMÂNT + BUTON ===== */

.vsw-oferta-consimtamant {
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
  margin: 8px 0 0;
}

.vsw-oferta-consimtamant a {
  color: #2563eb;
}

.vsw-oferta-submit {
  text-align: center;
  margin-top: 18px;
}

.vsw-oferta-submit input[type="submit"] {
  background-color: #ff5a0a;
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 13px 40px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 15px;
  width: 100%;
}

.vsw-oferta-submit input[type="submit"]:hover {
  opacity: 0.95;
}

/* ===== MONOFAZAT / TRIFAZAT – LOGICĂ FĂRĂ JS ===== */

/* Implicit NU arătăm niciun select de putere */
.vsw-mono-wrapper,
.vsw-tri-wrapper {
  display: none;
  margin-bottom: 10px;
}

/* Doar dacă browserul suportă :has(), comutăm automat */
@supports selector(:has(*)) {

  /* MONOFAZAT selectat -> arătăm doar MONO */
  .vsw-oferta-foto-form:has(input[name="tip-bransament"][value="MONOFAZAT"]:checked)
  .vsw-mono-wrapper {
    display: block;
  }

  /* TRIFAZAT selectat -> arătăm doar TRI */
  .vsw-oferta-foto-form:has(input[name="tip-bransament"][value="TRIFAZAT"]:checked)
  .vsw-tri-wrapper {
    display: block;
  }
}

/* ===== RESPONSIVE (MOBIL) ===== */

@media (max-width: 768px) {
  .vsw-oferta-foto-form {
    margin: 24px auto;
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .vsw-oferta-header {
    text-align: left;
    margin-bottom: 14px;
  }

  .vsw-oferta-title {
    font-size: 20px;
  }

  .vsw-oferta-subtitle {
    font-size: 13px;
  }

  /* rândurile mai compacte pe mobil */
  .vsw-oferta-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }

  .vsw-oferta-field {
    margin-bottom: 10px;
  }

  .vsw-oferta-foto-form input[type="text"],
  .vsw-oferta-foto-form input[type="tel"],
  .vsw-oferta-foto-form input[type="email"],
  .vsw-oferta-foto-form select,
  .vsw-oferta-foto-form textarea {
    font-size: 13px;
    padding: 9px 14px;
  }

  .vsw-radio-group .wpcf7-list-item label {
    font-size: 12px;
    padding: 6px 12px;
  }

  .vsw-oferta-submit input[type="submit"] {
    font-size: 14px;
    padding: 12px 24px;
  }
}
