/* ==========================================
   FORM_STYLE.CSS - Estilos Unificados
   Para uso no WordPress
   ========================================== */

/* ==========================================
   ESTILOS GLOBAIS
   ========================================== */

body {
    background: #f5f5f5;
    margin: 0;
}

/* ==========================================
   TEMA 1: COMPACT FORM (Original)
   Classes: .compact-form
   ========================================== */

.compact-form {
    max-width: 380px;
    margin: 15px auto;
    padding: 18px;
    background: #F8F8F8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    color: #333;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

.offer-section {
    text-align: center;
    margin-bottom: 18px;
}

.offer-badge {
    background: #28A745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.old-price {
    color: rgba(51, 51, 51, 0.6);
    text-decoration: line-through;
    font-size: 18px;
}

.new-price {
    color: #228B22;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-row {
    margin-bottom: 14px;
}

/* ATENÇÃO: .form-input do compact-form (padding 14px 16px, border 1px) */
.compact-form .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.compact-form .form-input:focus {
    outline: none;
    background: #FFFFFE;
    box-shadow: 0 0 0 2px #28A745;
    border-color: #28A745;
}

.compact-form .form-input::placeholder {
    color: #666;
    font-style: italic;
}

.compact-form .form-input:hover {
    background: #FFFFFE;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.2);
    border-color: #E0E0E0;
}

.compact-form .form-input:valid {
    border-left: 3px solid #28A745;
}

.compact-form .form-input:invalid:not(:placeholder-shown) {
    border-left: 4px solid #dc3545;
}

.order-btn {
    width: 100%;
    padding: 16px;
    background: #28A745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    background: #218838;
}

.order-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.order-btn:active {
    transform: translateY(0);
}

.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* ==========================================
   TEMA 2 e 3: ORDER FORM CONTAINER
   Classes: .order-form-container
   Use .theme-green ou .theme-orange para variações
   ========================================== */

.order-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

/* TEMA VERDE (padrão) */
.order-form-container .product-header,
.order-form-container.theme-green .product-header {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

/* TEMA LARANJA */
.order-form-container.theme-orange .product-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-container {
    margin-top: 10px;
}

.original-price {
    color: #ffcccc;
    text-decoration: line-through;
    font-size: 18px;
    margin-right: 8px;
}

.current-price {
    color: #fff200;
    font-size: 32px;
    font-weight: bold;
}

/* TEMA VERDE (padrão) */
.order-form-container h3,
.order-form-container.theme-green h3 {
    text-align: center;
    color: #28a745;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* TEMA LARANJA */
.order-form-container.theme-orange h3 {
    color: #FF6B35;
}

/* ATENÇÃO: .form-group - margin diferente entre temas */
.order-form-container.theme-green .form-group {
    margin-bottom: 20px;
}

.order-form-container.theme-orange .form-group {
    margin-bottom: 15px;
}

/* Padrão se não especificar tema */
.order-form-container .form-group {
    margin-bottom: 20px;
}

/* ATENÇÃO: .form-label - tamanhos diferentes entre temas */
.order-form-container.theme-green .form-label {
    display: block;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.order-form-container.theme-orange .form-label {
    display: block;
    color: #FF6B35;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Padrão se não especificar tema */
.order-form-container .form-label {
    display: block;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

/* ATENÇÃO: .form-input - MAIOR CONFLITO entre os 3 blocos */
/* TEMA VERDE */
.order-form-container.theme-green .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.order-form-container.theme-green .form-input:focus {
    outline: none;
    border-color: #28a745;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.order-form-container.theme-green .form-input:hover {
    border-color: #20c997;
}

/* TEMA LARANJA */
.order-form-container.theme-orange .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.order-form-container.theme-orange .form-input:focus {
    outline: none;
    border-color: #FF6B35;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.order-form-container.theme-orange .form-input:hover {
    border-color: #FF8C42;
}

/* Padrão se não especificar tema (usa verde) */
.order-form-container .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.order-form-container .form-input:focus {
    outline: none;
    border-color: #28a745;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.order-form-container .form-input:hover {
    border-color: #20c997;
}

/* Validação de inputs (comum para todos) */
.order-form-container .form-input:valid {
    border-color: #28a745;
}

.order-form-container .form-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* SUBMIT BUTTON - TEMA VERDE */
.order-form-container .submit-btn,
.order-form-container.theme-green .submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* SUBMIT BUTTON - TEMA LARANJA */
.order-form-container.theme-orange .submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 8px;
    font-size: 18px;
    margin-top: 5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.order-form-container.theme-orange .submit-btn:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

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

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* TRUST BADGES - TEMA VERDE */
.order-form-container .trust-badges,
.order-form-container.theme-green .trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: #f0f8f4;
    border-radius: 10px;
    flex-wrap: wrap;
}

.order-form-container .trust-badge,
.order-form-container.theme-green .trust-badge {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
}

/* TRUST BADGES - TEMA LARANJA */
.order-form-container.theme-orange .trust-badges {
    gap: 15px;
    margin-top: 15px;
    padding: 12px;
    background: #fff5f0;
    border-radius: 8px;
}

.order-form-container.theme-orange .trust-badge {
    font-size: 12px;
    color: #FF6B35;
}

/* PHONE HELP - TEMA VERDE */
.order-form-container.theme-green .phone-help {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

/* PHONE HELP - TEMA LARANJA */
.order-form-container.theme-orange .phone-help {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* Padrão */
.phone-help {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVIDADE
   ========================================== */

@media (max-width: 480px) {
    /* Compact Form */
    .compact-form {
        margin: 10px;
        padding: 15px;
        max-width: 350px;
    }
    
    .new-price {
        font-size: 24px;
    }
    
    .old-price {
        font-size: 16px;
    }
    
    .compact-form .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .order-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    /* Order Form Container */
    .order-form-container {
        margin: 0 10px;
        padding: 20px;
    }
    
    .product-title {
        font-size: 26px;
    }
    
    .current-price {
        font-size: 30px;
    }
    
    .trust-badges {
        gap: 10px;
    }
    
    .trust-badge {
        font-size: 12px;
    }
}