/* =========================
   GENERAL
========================= */
body {
    background: #fff8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* =========================
   BANNERS / LOGOS
========================= */
.rappi-dog-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255,140,0,0.25);
}

/* =========================
   FULLSCREEN CON SIDEBARS
========================= */
.rappi-dog-fullscreen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px 20px 20px;
}

/* SIDEBARS */
.rd-sidebar {
    flex: 1;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd-sidebar img,
.rd-sidebar video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255,140,0,0.25);
    object-fit: cover;
}

/* =========================
   FORMULARIO CENTRAL
========================= */
.rappi-dog-container {
    flex: 0 0 720px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255,140,0,0.25);
    padding: 30px 32px;
}

/* FORM SECTIONS */
.rd-section {
    margin-bottom: 22px;
}

.rd-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff6d00;
}

.rd-section input,
.rd-section select {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #ffa040;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

/* PRECIO */
#total {
    font-size: 26px;
    font-weight: 900;
    color: #ff6d00;
    text-align: center;
    background: #fff3e0;
    padding: 16px 0;
    border-radius: 12px;
}

/* FECHA Y HORA */
.rd-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* NOMBRE DEL PERRO */
#dog_name_section {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s, transform 0.4s;
}

#dog_name_section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* VALIDACIÓN */
.valid {
    border-color: #4caf50 !important;
}
.invalid {
    border-color: #d93025 !important;
}

/* BOTÓN */
.rd-btn-submit {
    background: linear-gradient(135deg,#ff6d00,#ff8c00);
    border: none;
    width: 100%;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
}

/* MODAL */
.rd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.rd-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rd-payment-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
}

.rd-btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    color: #ff6d00;
    cursor: pointer;
}

.rd-card-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.rd-card-option {
    padding: 12px 16px;
    border: 2px solid #ffa040;
    border-radius: 10px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-size: 18px;
}

.rd-card-option:hover {
    border-color: #ff6d00;
}

/* RESPONSIVE */
@media(max-width:1024px){
    .rappi-dog-fullscreen { flex-direction: column; align-items:center; }
    .rd-sidebar { max-width: 100%; flex-direction: row; overflow-x: auto; }
    .rappi-dog-container { width: 100%; padding: 20px; }
}
