.car-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e1e2e1;
}

.car-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(auto-fit, 400px);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* phones: 1 column */
@media (max-width: 900px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  width: 400px;
  height: 550px;
  background: #000;
  border: 1px solid #fff;
  border-radius: 36px;
  overflow: hidden;               
  font-family: 'Inter', sans-serif;
  color: #E1E2E1;
}
    
.card_image {  
  position: relative;        
  width: 100%;
  height: 42%;               
  overflow: hidden;
}

/* the <img> itself */
.card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center;
    display: block;      
}

.shadow{
    position: absolute;  
    inset: 0;            
    background:linear-gradient(
                to bottom,
                rgba(0,0,0,0) 85%,  
                rgba(0,0,0,.15) 95%,
                #000 100%);       
    pointer-events: none;         
}
        
.card_content {
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* container just keeps things centred – unchanged */
.car_info{
  position: relative;          
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* the price label */
.price{
  position: relative;            
  z-index: 2;                    
  background:#000;               
  padding: .15em .6em;           
  margin: 0 0 -.7em;             
  font-weight: 600;              
}

/* the spec-box */
.info-box{
  width: 60%;
  border: 3px solid #fff;
  border-radius: 12px;
  margin-top: 0;                 
  padding: 1.4em 10px 10px;      
  text-align: center;             
}

.show-btn {
    background: #e2dac9; 
    color: #000;
    border-radius: 20px;
    padding: 10px 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid white;
}   
.show-btn:hover {
    background: #d1c0a8; 
    color: #000;
    text-decoration: none;
}

@media (max-width: 420px) {        /* fire on most phones */
  .card{
    width: 90vw;                   /* 90 % of the viewport width */
    height: 520px;                 /* a bit shorter than 600 px */
  }

  .card_image{
    height: 45%;                   /* keep roughly the same visual balance */
  }

  .show-btn{
    font-size: 1em;                /* prevents huge buttons on tiny screens */
    padding: 10px 30px;
  }
}

.no-cars { 
    max-width: 1220px;
    width: 95%;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%), #1B3B6F;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers text inside the box */
    border-radius: 24px;    
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    margin: 40px; /* horizontally centers block element */
}

/* scope everything under .notify-form */
.notify-form {
  gap: 0.5rem;
  align-items: center;
}

.notify-form-label {
  color: #e1e2e1;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.notify-form-input{ 
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e1e2e1;
  border-radius: 24px;
  transition: border-color 0.2s ease;
  width: 80%;
}

.notify-form-btn[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: #0D1B2A;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 2px solid #e1e2e1;
  border-radius: 24px;

}

.notify-form-btn:hover {
  background-color: #2d445e;
}

.group{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e1e2e1;
    gap: 10px;
    width: 100%;
}

@media(max-width: 600px) {
    .group {
        flex-direction: column;
        align-items: center;
    }
}