/**
 * Path: wp-content/themes/blocksy-child/assets/css/jboms-inline-form.css
 * JBOMS Inline Contact Form Styles - MULTI-STEP VERSION
 */

/* ========================================
   CONTACT FORM SECTION
======================================== */

.jboms-contact-form-section {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    overflow: hidden;
}

.jboms-contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.jboms-contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.jboms-contact-form-header {
    text-align: center;
    margin-bottom: 60px;
}

.jboms-contact-form-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.jboms-contact-form-title .text-gray {
    color: #666;
}

.jboms-contact-form-subtitle {
    font-size: 1.25rem;
    color: #999;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.jboms-contact-form-guarantee {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 50px;
    color: #ff6b00;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   INLINE FORM WRAPPER
======================================== */

.jboms-inline-form-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.jboms-inline-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 50%, #ff6b00 100%);
    border-radius: 24px 24px 0 0;
}

/* ========================================
   PROGRESS INDICATOR - FIXED SIN BORDE NEGRO
======================================== */

/* ========================================
   PROGRESS INDICATOR - FIXED CON MAYOR ESPECIFICIDAD
======================================== */

.jboms-form-progress {
    margin-bottom: 50px;
}

.jboms-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

/* Progress Line Background */
.jboms-progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    border-radius: 10px;
}

/* Progress Line Fill */
.jboms-progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ff8c00) !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    border-radius: 10px;
}

/* Progress Steps */
.jboms-progress-step {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 120px;
}

.jboms-progress-step:first-child {
    align-items: flex-start;
}

.jboms-progress-step:last-child {
    align-items: flex-end;
}

/* Progress Circle - ESTADO BASE */
.jboms-progress-step .jboms-progress-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a1a1a !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666 !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Progress Circle - ACTIVO (NARANJA) */
.jboms-progress-step.active .jboms-progress-circle {
    background: linear-gradient(135deg, #ff6b00, #ff8c00) !important;
    border-color: #ff6b00 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5) !important;
}

/* Progress Circle - COMPLETADO */
.jboms-progress-step.completed .jboms-progress-circle {
    background: #1a1a1a !important;
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
}

/* Progress Label - ESTADO BASE */
.jboms-progress-step .jboms-progress-label {
    font-size: 0.75rem;
    color: #666 !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.3;
    max-width: 100px;
}

.jboms-progress-step:first-child .jboms-progress-label {
    text-align: left;
}

.jboms-progress-step:last-child .jboms-progress-label {
    text-align: right;
}

/* Progress Label - ACTIVO */
.jboms-progress-step.active .jboms-progress-label {
    color: #ff6b00 !important;
}

/* Progress Label - COMPLETADO */
.jboms-progress-step.completed .jboms-progress-label {
    color: #999 !important;
}

/* ========================================
   FORM STEPS CONTAINER
======================================== */

.jboms-form-steps-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.jboms-form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jboms-form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jboms-form-step.slide-out-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jboms-form-step.slide-out-right {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ========================================
   FORM SECTIONS
======================================== */

.jboms-form-section {
    margin-bottom: 30px;
}

.jboms-form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jboms-form-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 2px;
}

.jboms-form-section-description {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ========================================
   FORM GRID
======================================== */

.jboms-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.jboms-form-grid-1 {
    grid-template-columns: 1fr;
}

.jboms-form-full-width {
    grid-column: 1 / -1;
}

/* ========================================
   FORM GROUPS
======================================== */

.jboms-inline-form-group {
    margin-bottom: 0;
}

.jboms-inline-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jboms-inline-form-group input[type="text"],
.jboms-inline-form-group input[type="email"],
.jboms-inline-form-group input[type="tel"],
.jboms-inline-form-group select,
.jboms-inline-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.jboms-inline-form-group input:focus,
.jboms-inline-form-group select:focus,
.jboms-inline-form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.jboms-inline-form-group input::placeholder,
.jboms-inline-form-group textarea::placeholder {
    color: #666;
}

.jboms-inline-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
    line-height: 1.5;
    height: auto;
    min-height: 50px;
}

.jboms-inline-form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.jboms-inline-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========================================
   CHECKBOXES
======================================== */

.jboms-services-checkboxes {
    margin-bottom: 20px;
}

.jboms-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.jboms-inline-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jboms-inline-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.5);
}

.jboms-inline-checkbox input[type="checkbox"] {
    display: none;
}

.jboms-checkbox-custom {
    display: none;
}

.jboms-checkbox-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

.jboms-inline-checkbox input[type="checkbox"]:checked ~ .jboms-checkbox-text {
    color: #ff6b00;
}

.jboms-inline-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
}

/* ========================================
   NAVIGATION BUTTONS
======================================== */

.jboms-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jboms-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jboms-btn-previous {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.jboms-btn-previous:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

.jboms-btn-next {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
    margin-left: auto;
}

.jboms-btn-next:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
    transform: translateX(3px);
}

.jboms-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.jboms-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.jboms-btn-previous:hover:not(:disabled) .jboms-btn-icon {
    transform: translateX(-3px);
}

.jboms-btn-next:hover:not(:disabled) .jboms-btn-icon {
    transform: translateX(3px);
}

/* ========================================
   SUBMIT BUTTON
======================================== */

.jboms-form-submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

.jboms-inline-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.jboms-inline-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.jboms-inline-submit-btn:hover::before {
    left: 100%;
}

.jboms-inline-submit-btn:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
}

.jboms-inline-submit-btn:active {
    transform: translateY(0);
}

.jboms-submit-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.jboms-inline-submit-btn:hover .jboms-submit-icon {
    transform: translateX(5px);
}

.jboms-inline-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.jboms-inline-submit-btn.loading {
    pointer-events: none;
}

.jboms-inline-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   FORM MESSAGES
======================================== */

.jboms-inline-form-message {
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jboms-inline-form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.jboms-inline-form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.jboms-inline-form-message.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* ========================================
   ERROR STATES
======================================== */

.jboms-inline-form-group input.error,
.jboms-inline-form-group select.error,
.jboms-inline-form-group textarea.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.jboms-inline-form-group input.error:focus,
.jboms-inline-form-group select.error:focus,
.jboms-inline-form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .jboms-contact-form-section {
        padding: 80px 20px;
    }

    .jboms-contact-form-title {
        font-size: 3rem;
    }

    .jboms-inline-form-wrapper {
        padding: 40px 30px;
    }

    .jboms-form-grid {
        grid-template-columns: 1fr;
    }

    .jboms-progress-steps {
        max-width: 600px;
    }

    .jboms-progress-label {
        font-size: 0.7rem;
        max-width: 90px;
    }
}

@media (max-width: 768px) {
    .jboms-contact-form-section {
        padding: 60px 15px;
    }

    .jboms-contact-form-header {
        margin-bottom: 40px;
    }

    .jboms-contact-form-title {
        font-size: 2.5rem;
    }

    .jboms-contact-form-subtitle {
        font-size: 1rem;
    }

    .jboms-contact-form-guarantee {
        font-size: 0.75rem;
        padding: 10px 20px;
    }

    .jboms-inline-form-wrapper {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .jboms-form-section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .jboms-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .jboms-progress-steps {
        max-width: 100%;
        padding: 0 10px;
    }

    .jboms-progress-line {
        left: 35px;
        right: 35px;
        top: 18px;
    }

    .jboms-progress-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .jboms-progress-label {
        font-size: 0.65rem;
        max-width: 70px;
    }

    .jboms-form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .jboms-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
    }

    .jboms-btn-next {
        margin-left: 0;
    }

    .jboms-inline-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 40px;
        font-size: 1rem;
    }

    .jboms-form-steps-container {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .jboms-contact-form-title {
        font-size: 2rem;
    }

    .jboms-contact-form-subtitle {
        font-size: 0.9rem;
    }

    .jboms-inline-form-wrapper {
        padding: 20px 15px;
    }

    .jboms-form-section-title {
        font-size: 1.1rem;
    }

    .jboms-inline-form-group label {
        font-size: 0.8rem;
    }

    .jboms-inline-form-group input,
    .jboms-inline-form-group select,
    .jboms-inline-form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .jboms-inline-checkbox {
        padding: 12px 15px;
    }

    .jboms-checkbox-text {
        font-size: 0.85rem;
    }

    .jboms-inline-submit-btn {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    .jboms-nav-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .jboms-progress-steps {
        padding: 0 5px;
    }

    .jboms-progress-line {
        left: 28px;
        right: 28px;
        top: 16px;
        height: 2px;
    }

    .jboms-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        border-width: 2px;
    }

    .jboms-progress-label {
        font-size: 0.6rem;
        max-width: 60px;
    }

    .jboms-progress-step {
        gap: 8px;
        max-width: 80px;
    }
}

/* ========================================
   SMOOTH SCROLL
======================================== */

.jboms-smooth-scroll {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.jboms-inline-form-group input:focus-visible,
.jboms-inline-form-group select:focus-visible,
.jboms-inline-form-group textarea:focus-visible {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

.jboms-inline-submit-btn:focus-visible,
.jboms-nav-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}