/* style.css atualizado - responsivo e ajustes de tags */

/* Fonte -- você pode carregar Poppins no tema; plugin não injeta Google Fonts */
* {
    font-family: 'Poppins', sans-serif;
}

/* Container externo transparente */
.car-rental-form {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Inner branco */
.car-rental-inner {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Card principal */
.car-rental-card {
    background: transparent;
    border-radius: 24px;
}

/* Checkbox customizado */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid #dc2626;
    border-radius: 0px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background-color: #dc2626;
    transform: scale(1.1);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Option card */
.option-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
    padding: 12px;
    cursor: pointer;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.option-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Tags */
.price-tag { background: linear-gradient(135deg,#dc2626 0%,#b91c1c 100%); color:#fff; padding:8px 12px; border-radius:20px; font-weight:600; font-size:14px; display:inline-block; vertical-align:middle; margin-left:10px; white-space:nowrap; }
.free-tag { background: linear-gradient(135deg,#059669 0%,#047857 100%); color:#fff; padding:8px 12px; border-radius:20px; font-weight:600; font-size:14px; display:inline-block; vertical-align:middle; margin-left:10px; white-space:nowrap; }
.airport-tag { background: linear-gradient(135deg,#1e40af 0%,#1d4ed8 100%); color:#fff; padding:8px 12px; border-radius:20px; font-weight:600; font-size:14px; display:inline-block; vertical-align:middle; margin-left:10px; white-space:nowrap; }

/* Ensure tags won't overlap by allowing wrap and stacking on small devices */
.option-card strong { display:inline-block; vertical-align:middle; max-width: calc(100% - 140px); }
.option-card .price-tag,
.option-card .airport-tag,
.option-card .free-tag { float:right; margin-left:0; }

/* Inputs */
.input-field {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width:100%;
    box-sizing:border-box;
}

.input-field:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30,64,175,0.07);
    outline:none;
}

/* Section */
.section-title {
    color: #1f2937;
    font-weight:700;
    font-size:20px;
    margin-bottom:16px;
    position:relative;
}
.section-title::after {
    content:'';
    position:absolute;
    bottom:-4px;
    left:0;
    width:60px;
    height:3px;
    background:linear-gradient(90deg,#1e40af 0%,#dc2626 100%);
    border-radius:2px;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(135deg,#1e40af 0%,#dc2626 100%);
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30,64,175,0.25);
    color: #ffffff !important;
}

/* Price summary */
.price-summary {
    background: linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);
    border:2px solid #e2e8f0;
    border-radius:16px;
    padding:24px;
}

/* Step buttons */
.cr-step-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:12px; }
.cr-step-actions .button { padding:8px 16px; border-radius:8px; border:1px solid #d1d5db; background:#fff; cursor:pointer; }
.cr-step-actions .button.next-step { background:#1e40af; color:#fff; border-color:transparent; }
.cr-step-actions .button.prev-step { background:#fff; color:#111827; }

/* Hotel section */
.hotel-section {
    background: linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);
    border:2px solid #fecaca;
    border-radius:16px;
    padding:20px;
}

/* Responsive tweaks */
@media (max-width:1024px) {
    .option-card .price-tag,
    .option-card .airport-tag,
    .option-card .free-tag {
        display:inline-block;
        float:none;
        margin-top:8px;
        margin-left:0;
    }
    .option-card strong { max-width:100%; display:block; }
}

@media (max-width:768px) {
    .car-rental-inner { padding:16px; }
    /* Stack name and price to avoid overlap */
    .option-card { display:block; }
    .option-card strong { display:block; margin-bottom:6px; }
    .option-card .price-tag,
    .option-card .airport-tag,
    .option-card .free-tag { display:inline-block; margin-top:6px; }
}
