/* --- Global Styles & Variables --- */
:root {
    --primary-color: #f5002e; /* Your new theme color */
    --dark-text: #333333;
    --light-text: #666666;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    line-height: 1.6;
    overflow: visible !important;
}

/* --- Main Container & Title --- */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-text);
    text-transform: uppercase;
}

/* --- Responsive Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* --- Product Card Styling --- */
.product-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    /* aspect-ratio: 4 / 3; */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;

    width: 100%;
    max-width: 350%;
    height: 350px;
    object-fit: contain;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-model {
    /* font-size: 1.5rem; */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.features-specs{
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-bottom: 24px;
}

.features-specs ul{
  margin-left: 15px;
}

.features-specs p{
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}


.product-specs {
    list-style: none;
    margin-bottom: 24px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.product-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--light-text);
    font-weight: 400;
    padding-right: 8px;
}

.spec-value {
    color: var(--dark-text);
    font-weight: 600;
    text-align: right;
}

/* --- Card Buttons (RENAMED) --- */
.card-buttons {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.card-action-btn {
    display: inline-block;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-action-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.card-action-primary:hover {
    background-color: #c40025;
    border-color: #c40025;
    color:#FFF;
    text-decoration: none;
}

.card-action-primary:visited {
  color: #FFF;
}

.card-action-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration: none;
}

.card-action-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}




/* --- Media Queries --- */

/* For the product card grid */
@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    .product-model {
        font-size: 1.5rem;
    }
}







/*
 * ===================================================================
 * Custom Styles for Product Enquiry Contact Form 7
 * ===================================================================
 */

/* 1. General Container & Layout
-------------------------------------------------------------- */
.product-form-enquiry {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #f4f7f9; /* Light grey background for the whole section */
  padding: 40px 20px;
}

.product-form-enquiry .form-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-form-enquiry .form-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: #2c3e50;
}

/* 2. Form Grid & Field Spacing
-------------------------------------------------------------- */
/* Ensures the Bootstrap grid columns have proper spacing */
.product-form-enquiry .wpcf7-form .form-row {
  margin-left: -15px;
  margin-right: -15px;
}

.product-form-enquiry .wpcf7-form .col-md-6,
.product-form-enquiry .wpcf7-form .col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* This standardizes the space below each form field group */
.product-form-enquiry .wpcf7-form .form-group {
  margin-bottom: 1.75rem;
  position: relative; /* Needed for any potential future modifications */
}


/* 3. Labels and Input Fields
-------------------------------------------------------------- */
/* This section resets the complex label positioning from your HTML
   and styles it as a clean, standard label above the input field. */
.product-form-enquiry .form-group label {
  display: block;
  position: static; /* Overrides the original inline absolute positioning */
  margin-bottom: 0.5rem;
  padding: 0px;
}

.product-form-enquiry .form-group label br {
  display: none; /* Hides unnecessary <br> tags */
}

/* Targets the <span> with the label text */
.product-form-enquiry .form-group label .h6 {
  position: static !important; /* Overrides inline style */
  background: none !important; /* Overrides inline style */
  padding: 0 !important; /* Overrides inline style */
  font-size: 14px;
  color: #34495e;
  font-weight: 600;
}

/* Universal styling for all input types */
.product-form-enquiry .wpcf7-form .form-control {
  display: block;
  width: 100%;
  height: 52px; /* Consistent height for inputs and selects */
  padding: 0 15px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-top: 0 !important; /* Overrides the mt-n3 class */
}

/* Adds a focus effect for better UX */
.product-form-enquiry .wpcf7-form .form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Specific styling for the <textarea> */
.product-form-enquiry .wpcf7-form textarea.form-control {
  height: auto;
  min-height: 140px;
  padding-top: 15px;
  resize: vertical;
}

/* Custom dropdown arrow for <select> elements */
.product-form-enquiry .wpcf7-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}

/* 4. Submit Button
-------------------------------------------------------------- */
.product-form-enquiry .wpcf7-submit {
  width: 100%;
  padding: 0 !important; /* Reset padding to be controlled by height/line-height */
  height: 55px;
  line-height: 55px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background-color: #f5002e !important; /* Your primary color */
  border: none !important;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-form-enquiry .wpcf7-submit:hover {
  background-color: #d40028 !important; /* Darker shade for hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-form-enquiry .wpcf7-submit:active {
  transform: translateY(0);
}


/* 5. Validation Messages & Errors
-------------------------------------------------------------- */
/* Style for invalid field borders */
.product-form-enquiry .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e74c3c !important; /* Red for errors */
}

/* Error message below the field */
.product-form-enquiry .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 8px;
  font-weight: 500;
}

/* General response box (for success or failure messages) */
.product-form-enquiry .wpcf7-response-output {
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}

/* Red error box */
.product-form-enquiry .wpcf7-validation-errors {
  border: 1px solid #e74c3c;
  background-color: #fdedec;
  color: #c0392b;
}

/* Green success box */
.product-form-enquiry .wpcf7-mail-sent-ok {
  border: 1px solid #27ae60;
  background-color: #d4efdf;
  color: #1e8449;
}


/* 6. Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
  .product-form-enquiry .form-container {
    padding: 2rem;
  }

  .product-form-enquiry .wpcf7-form .col-md-6 {
    width: 100%; /* Stacks the two-column fields on mobile */
  }

  .product-form-enquiry .form-title {
    font-size: 1.8rem;
  }
}