/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme...
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* === Din egen CSS börjar här === */

.hidden {
    display: none;
}

/* ===========  
   OFFERTFÖRFRÅGAN (form ID: #wpcf7-f12-p87-o1)  
   Grid med .form-row och .form-col  
=========== */

#wpcf7-f12-p87-o1 .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

#wpcf7-f12-p87-o1 .form-col {
    width: 100%;
}

@media (min-width: 768px) {
    #wpcf7-f12-p87-o1 .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Full-width fält */
#wpcf7-f12-p87-o1 .full-width {
    grid-column: span 2;
    width: 100%;
}

/* Checkbox-sektionen */
#wpcf7-f12-p87-o1 .valj-tjanst {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

/* GDPR och submit-knapp på samma rad */
@media (min-width: 768px) {
    #wpcf7-f12-p87-o1 .gdpr-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
        grid-column: span 2;
    }
}



/* ===========
   PARTNER-ANMÄLAN (form ID: #wpcf7-f10-p159-o1)
   =========== */

#wpcf7-f10-p159-o1 form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    color: #fff;
}

#wpcf7-f10-p159-o1 form label {
    color: #fff;
}

#wpcf7-f10-p159-o1 form p {
    margin-bottom: 8px;
}

#wpcf7-f10-p159-o1 input,
#wpcf7-f10-p159-o1 textarea,
#wpcf7-f10-p159-o1 select {
    margin-bottom: 8px;
    padding: 8px;
}

@media (min-width: 768px) {
    #wpcf7-f10-p159-o1 form {
        grid-template-columns: repeat(2, 1fr);
    }

    #wpcf7-f10-p159-o1 form > p {
        margin: 0;
        grid-column: span 1;
    }

    #wpcf7-f10-p159-o1 form > p.full-width,
    #wpcf7-f10-p159-o1 .full-width {
        grid-column: span 2;
    }

    #wpcf7-f10-p159-o1 .gdpr-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        grid-column: span 2;
    }
}

/* Submit-knapp (grön) */
#wpcf7-f10-p159-o1 .wpcf7-submit {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#wpcf7-f10-p159-o1 .wpcf7-submit:hover {
    background-color: #45a049;
}

/* ===========
   GEMENSAMT
   =========== */

/* Checkbox-rad (gäller alla forms) */
.valj-tjanst p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

/* Textarea höjd */
.wpcf7 textarea {
    min-height: 80px;
}

/* Roterande ikon vid FAQ */
.elementor-toggle .elementor-tab-title .elementor-toggle-icon i {
    transition: transform 0.3s ease;
}

.elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon i {
    transform: rotate(180deg);
}

/* partner CPT */

.partner-archive .container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
}

.ast-container {
  display: block !important;
}

.partner-archive .partner-list {
  display: grid !important; /* säkerställ att den inte blir flex */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}


.partner-card {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-logo {
    display: block;
  max-width: 150px;
  max-height: 120px;
  margin: 0 auto 1rem auto; /* Centrera horisontellt + avstånd under */
}



.btn {
  display: inline-block;
  background-color: #0056b3;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: #fff;
  color: #0056b3;
  border: 2px solid #0056b3;
}





/* partner single css */

.partner-hero {
  position: relative;
  height: 400px;
  color: white;
  margin-top: 20px;
}

.hero-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #fff !important;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-actions .btn {
  background: #fff;
  color: #333;
  padding: 0.6rem 1.2rem;
  margin: 0.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.hero-actions .btn:hover {
  background: #0056b3;
  color: #fff;
}

.partner-contact-form {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
}

.partner-details {
  background-color: #fff;
  padding: 2rem 2rem;
}

.partner-details h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.partner-details .services ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.partner-back-link {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.btn-secondary {
  display: inline-block;
  background: #e0e0e0;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

.btn-secondary:hover {
  background: #ccc;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: transparent;
  color: #333;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.services-modern {
  
  margin-top: 20px;
}

.service-badge {
  background-color: #f0f4ff;
  color: #003366;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

.service-badge:hover {
  background-color: #003366;
  color: white;
  cursor: pointer;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d2b53;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 3px solid #e0e0e0;
}

.section-heading .icon {
  font-size: 1.5rem;
}


.verkstadstyp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.85rem;
    background-color: #e7efff;
    color: #1d2b53;
    border-radius: 20px;
    border: 1px solid #cbd9ee;
    font-weight: 500;
}


