/**
 * Guest Grow Booking Form - Frontend Styles
 * 
 * CSS para o formulário de reservas off-canvas
 * 
 * @package GuestGrowBookingForm
 * @since 1.0.0
 */

/* ============================================================================
   RESET E BASE
   ========================================================================= */

.ggbf-off-canvas,
.ggbf-off-canvas * {
    box-sizing: border-box;
}

.ggbf-off-canvas {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ============================================================================
   BOTÃO TRIGGER
   ========================================================================= */

.ggbf-trigger-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.ggbf-trigger-btn:hover {
    background: linear-gradient(135deg, #005a8b 0%, #007cba 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.4);
    color: white;
    text-decoration: none;
}

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



/* ============================================================================
   OFF-CANVAS CONTAINER
   ========================================================================= */

.ggbf-off-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0);
}

.ggbf-off-canvas.active {
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.ggbf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ============================================================================
   CANVAS PRINCIPAL
   ========================================================================= */

.ggbf-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ggbf-off-canvas.active .ggbf-canvas {
    transform: translateX(0);
}

/* ============================================================================
   HEADER
   ========================================================================= */

.ggbf-header {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ggbf-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.ggbf-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ggbf-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ggbf-close-icon {
    font-size: 24px;
    line-height: 1;
}

/* ============================================================================
   PROGRESS BAR
   ========================================================================= */

.ggbf-progress-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ggbf-progress-bar::-webkit-scrollbar {
    display: none;
}

.ggbf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    text-align: center;
    position: relative;
}

.ggbf-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(100% + 4px);
    width: calc(100% - 8px);
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.ggbf-progress-step.active:not(:last-child)::after,
.ggbf-progress-step.completed:not(:last-child)::after {
    background: #007cba;
}

.ggbf-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.ggbf-progress-step.active .ggbf-step-number {
    background: #007cba;
    color: white;
}

.ggbf-progress-step.completed .ggbf-step-number {
    background: #28a745;
    color: white;
}

.ggbf-step-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

.ggbf-progress-step.active .ggbf-step-label {
    color: #007cba;
    font-weight: 600;
}

.ggbf-progress-step.completed .ggbf-step-label {
    color: #28a745;
}

/* ============================================================================
   CONTENT AREA
   ========================================================================= */

.ggbf-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ggbf-step {
    display: none !important;
}

.ggbf-step.active {
    display: block !important;
}

.ggbf-step-content h3 {
    margin: 0 0 24px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* ============================================================================
   FORM STYLES
   ========================================================================= */

.ggbf-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.ggbf-form-group {
    flex: 1;
}

.ggbf-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ggbf-input,
.ggbf-select,
.ggbf-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.ggbf-input:focus,
.ggbf-select:focus,
.ggbf-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ggbf-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================================================
   ROOM CARDS
   ========================================================================= */

.ggbf-rooms-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ggbf-room-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ggbf-room-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.ggbf-room-item.selected {
    border-color: #007cba;
    background: rgba(0, 124, 186, 0.02);
}

.ggbf-room-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.ggbf-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ggbf-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.ggbf-room-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.ggbf-room-description {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.ggbf-room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ggbf-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.ggbf-room-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.ggbf-price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
}

.ggbf-price-unit {
    font-size: 12px;
    color: #6c757d;
}

/* ============================================================================
   EXTRAS
   ========================================================================= */

.ggbf-extras-container {
    margin-top: 24px;
}

.ggbf-extra-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.ggbf-extra-item:hover {
    border-color: #007cba;
}

.ggbf-extra-info {
    flex: 1;
}

.ggbf-extra-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.ggbf-extra-description {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #6c757d;
}

.ggbf-extra-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ggbf-extra-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ggbf-extra-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================================================
   SUMMARY
   ========================================================================= */

.ggbf-booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.ggbf-summary-section {
    margin-bottom: 20px;
}

.ggbf-summary-section:last-child {
    margin-bottom: 0;
}

.ggbf-summary-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.ggbf-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
}

.ggbf-summary-label {
    color: #6c757d;
    font-size: 14px;
}

.ggbf-summary-value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.ggbf-summary-total {
    border-top: 1px solid #dee2e6;
    padding-top: 16px;
}

.ggbf-summary-total .ggbf-total {
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
    font-weight: 600;
}

.ggbf-summary-total .ggbf-total .ggbf-summary-label,
.ggbf-summary-total .ggbf-total .ggbf-summary-value {
    font-size: 16px;
    color: #007cba;
}

/* ============================================================================
   CONFIRMATION
   ========================================================================= */

.ggbf-confirmation-success {
    text-align: center;
    padding: 40px 20px;
}

.ggbf-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 36px;
}

.ggbf-checkmark {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.ggbf-confirmation-success h3 {
    margin: 0 0 12px 0;
    color: #28a745;
    font-size: 24px;
    font-weight: 600;
}

.ggbf-booking-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.ggbf-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ggbf-detail-item:last-child {
    margin-bottom: 0;
}

.ggbf-next-steps {
    text-align: left;
    margin-top: 24px;
}

.ggbf-next-steps h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.ggbf-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.ggbf-next-steps li {
    margin-bottom: 8px;
    color: #6c757d;
}

/* ============================================================================
   FOOTER E NAVEGAÇÃO
   ========================================================================= */

.ggbf-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 24px;
    flex-shrink: 0;
}

.ggbf-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ggbf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.ggbf-btn:disabled,
.ggbf-btn.ggbf-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.ggbf-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.ggbf-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a8b 0%, #007cba 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.ggbf-btn-secondary {
    background: #6c757d;
    color: white;
}

.ggbf-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.ggbf-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.ggbf-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* ============================================================================
   LOADING E ESTADOS
   ========================================================================= */

.ggbf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6c757d;
}

.ggbf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.ggbf-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #dc3545;
}

.ggbf-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #28a745;
}

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

@media (max-width: 768px) {
    .ggbf-canvas {
        width: 100%;
        max-width: 100%;
    }
    
    .ggbf-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .ggbf-progress-bar {
        padding: 12px 16px;
        gap: 4px;
    }
    
    .ggbf-progress-step {
        min-width: 50px;
    }
    
    .ggbf-step-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .ggbf-step-label {
        font-size: 10px;
    }
    
    .ggbf-content {
        padding: 16px;
    }
    
    .ggbf-footer {
        padding: 16px;
    }
    
    .ggbf-navigation {
        flex-direction: column;
    }
    
    .ggbf-btn {
        width: 100%;
    }
    
    .ggbf-room-item {
        padding: 12px;
    }
    
    .ggbf-room-image {
        height: 120px;
    }
    
    .ggbf-extra-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ggbf-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .ggbf-header {
        padding: 16px;
    }
    
    .ggbf-title {
        font-size: 18px;
    }
    
    .ggbf-progress-bar {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .ggbf-content {
        padding: 12px;
    }
    
    .ggbf-confirmation-success {
        padding: 20px 12px;
    }
    
    .ggbf-success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ============================================================================
   ACESSIBILIDADE
   ========================================================================= */

.ggbf-off-canvas *:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.ggbf-screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   TRANSIÇÕES SUAVES
   ========================================================================= */

.ggbf-step {
    transition: opacity 0.3s ease;
}

.ggbf-step:not(.active) {
    opacity: 0;
}

.ggbf-step.active {
    opacity: 1;
}

/* ============================================================================
   STEP 3: TARIFAS E EXTRAS - DESIGN MELHORADO
   ========================================================================= */

/* Header das Tarifas */
.ggbf-rates-header {
    margin-bottom: 20px;
}

.ggbf-rates-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Lista de Tarifas */
.ggbf-rates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.ggbf-rate-plan {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    overflow: hidden;
}

.ggbf-rate-plan:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ggbf-rate-plan.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ggbf-rate-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.ggbf-rate-radio {
    display: none;
}

.ggbf-rate-card {
    padding: 20px;
    position: relative;
}

.ggbf-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ggbf-rate-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ggbf-rate-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.ggbf-rate-plan.selected .ggbf-rate-check {
    border-color: #3b82f6;
    background: #3b82f6;
}

.ggbf-check-icon {
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ggbf-rate-plan.selected .ggbf-check-icon {
    opacity: 1;
}

.ggbf-rate-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.ggbf-rate-amount {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.ggbf-rate-period {
    font-size: 14px;
    color: #6b7280;
}

.ggbf-tax-included {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 2px;
}

.ggbf-rate-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Header dos Extras */
.ggbf-extras-header {
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.ggbf-extras-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Grid de Extras */
.ggbf-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.ggbf-extra-item {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    overflow: hidden;
    background: white;
}

.ggbf-extra-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ggbf-extra-card {
    padding: 20px;
}

.ggbf-extra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.ggbf-extra-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
}

.ggbf-extra-price {
    text-align: right;
    flex-shrink: 0;
}

.ggbf-price-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
}

.ggbf-price-type {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.ggbf-extra-description {
    margin-bottom: 16px;
}

.ggbf-extra-description p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.ggbf-extra-actions {
    display: flex;
    justify-content: flex-end;
}

/* Toggle Switch para Extras */
.ggbf-extra-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.ggbf-extra-checkbox {
    display: none;
}

.ggbf-toggle-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background: #d1d5db;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.ggbf-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ggbf-extra-checkbox:checked + .ggbf-toggle-slider {
    background: #3b82f6;
}

.ggbf-extra-checkbox:checked + .ggbf-toggle-slider::after {
    transform: translateX(22px);
}

.ggbf-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ggbf-extra-checkbox:checked ~ .ggbf-toggle-label {
    color: #3b82f6;
}

/* Badge Obrigatório */
.ggbf-mandatory-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .ggbf-extras-grid {
        grid-template-columns: 1fr;
    }
    
    .ggbf-rate-card {
        padding: 16px;
    }
    
    .ggbf-extra-card {
        padding: 16px;
    }
    
    .ggbf-extra-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ggbf-extra-price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ggbf-rate-name {
        font-size: 16px;
    }
    
    .ggbf-rate-amount {
        font-size: 20px;
    }
    
    .ggbf-extra-name {
        font-size: 15px;
    }
    
    .ggbf-price-amount {
        font-size: 16px;
    }
}

/* ============================================================================
   ESTILOS PARA VALIDAÇÃO E CAMPOS OBRIGATÓRIOS
   ========================================================================= */

/* Campos obrigatórios */
.ggbf-required {
    color: #e74c3c;
    font-weight: bold;
}

/* Campos opcionais */
.ggbf-optional {
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: normal;
}

/* Descrição do step */
.ggbf-step-description {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Erros de campo individuais */
.ggbf-field-error {
    display: none;
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 500;
}

/* Input com erro */
.ggbf-input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* Ajuda do campo */
.ggbf-field-help {
    color: #7f8c8d;
    font-size: 0.85em;
    margin-top: 5px;
    line-height: 1.3;
}

/* Aviso de privacidade */
.ggbf-privacy-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-top: 20px;
}

.ggbf-privacy-notice p {
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
}

/* Melhorias nos inputs */
.ggbf-input,
.ggbf-select,
.ggbf-textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ggbf-input:focus,
.ggbf-select:focus,
.ggbf-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Placeholders mais suaves */
.ggbf-input::placeholder,
.ggbf-textarea::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* Labels melhorados */
.ggbf-form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
}

/* Espaçamento melhorado entre campos */
.ggbf-form-group {
    margin-bottom: 20px;
}

.ggbf-form-row .ggbf-form-group {
    margin-bottom: 15px;
}

/* Estados de validação mais suaves */
.ggbf-input:valid {
    border-color: #27ae60;
}

.ggbf-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Botões desabilitados durante validação */
.ggbf-btn:disabled,
.ggbf-btn.ggbf-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state */
.ggbf-loading .ggbf-btn {
    position: relative;
    color: transparent;
}

.ggbf-loading .ggbf-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: ggbf-spin 1s linear infinite;
}

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

/* ============================================================================
   SISTEMA DINÂMICO DE CUSTOM FIELDS
   ========================================================================= */

/* Container principal dos custom fields */
.ggbf-dynamic-fields-container {
    width: 100%;
}

.ggbf-custom-fields-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ggbf-basic-fields-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Loading state */
.ggbf-fields-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.ggbf-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: ggbf-spin 1s linear infinite;
    margin-bottom: 16px;
}

/* Form groups para custom fields */
.ggbf-field-text,
.ggbf-field-textarea,
.ggbf-field-select,
.ggbf-field-checkbox,
.ggbf-field-date,
.ggbf-field-country,
.ggbf-field-state {
    margin-bottom: 20px;
}

/* Labels específicos para custom fields */
.ggbf-field-text .ggbf-label,
.ggbf-field-textarea .ggbf-label,
.ggbf-field-select .ggbf-label,
.ggbf-field-date .ggbf-label,
.ggbf-field-country .ggbf-label,
.ggbf-field-state .ggbf-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Required indicator */
.ggbf-required {
    color: #dc3545;
    margin-left: 4px;
}

/* Input styles para custom fields */
.ggbf-field-text input,
.ggbf-field-date input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.ggbf-field-text input:focus,
.ggbf-field-date input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Textarea styles */
.ggbf-field-textarea textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    resize: vertical;
    min-height: 100px;
}

.ggbf-field-textarea textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Select styles */
.ggbf-field-select select,
.ggbf-field-country select,
.ggbf-field-state select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 44px;
    appearance: none;
}

.ggbf-field-select select:focus,
.ggbf-field-country select:focus,
.ggbf-field-state select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ggbf-field-state select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Checkbox styles */
.ggbf-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ggbf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.ggbf-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.ggbf-checkbox:checked {
    background-color: #007cba;
    border-color: #007cba;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
}

.ggbf-checkbox-text {
    flex: 1;
}

/* Links em checkbox labels */
.ggbf-field-link {
    color: #007cba;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ggbf-field-link:hover {
    color: #005a8b;
}

/* Separators */
.ggbf-field-separator {
    margin: 32px 0 24px 0;
    padding: 16px 0;
    border-bottom: 2px solid #e1e5e9;
}

.ggbf-separator-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Error states */
.ggbf-input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.ggbf-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Success states */
.ggbf-input-success {
    border-color: #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
    .ggbf-custom-fields-container {
        gap: 16px;
    }
    
    .ggbf-field-text input,
    .ggbf-field-textarea textarea,
    .ggbf-field-select select,
    .ggbf-field-country select,
    .ggbf-field-state select,
    .ggbf-field-date input {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 14px 16px;
    }
    
    .ggbf-separator-title {
        font-size: 16px;
    }
    
    .ggbf-checkbox-label {
        font-size: 14px;
    }
}

/* Special input types */
.ggbf-date-input {
    position: relative;
}

.ggbf-date-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Country and state dependencies */
.ggbf-country-select,
.ggbf-state-select {
    transition: all 0.3s ease;
}

/* Loading states for field containers */
.ggbf-field-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation para aparecer campos */
@keyframes ggbf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ggbf-custom-fields-container > * {
    animation: ggbf-fadeInUp 0.4s ease-out;
}

/* Staggered animation para múltiplos campos */
.ggbf-custom-fields-container > *:nth-child(1) { animation-delay: 0ms; }
.ggbf-custom-fields-container > *:nth-child(2) { animation-delay: 50ms; }
.ggbf-custom-fields-container > *:nth-child(3) { animation-delay: 100ms; }
.ggbf-custom-fields-container > *:nth-child(4) { animation-delay: 150ms; }
.ggbf-custom-fields-container > *:nth-child(5) { animation-delay: 200ms; }
.ggbf-custom-fields-container > *:nth-child(6) { animation-delay: 250ms; }
.ggbf-custom-fields-container > *:nth-child(7) { animation-delay: 300ms; }
.ggbf-custom-fields-container > *:nth-child(8) { animation-delay: 350ms; }

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ggbf-field-text input,
    .ggbf-field-textarea textarea,
    .ggbf-field-select select,
    .ggbf-field-country select,
    .ggbf-field-state select,
    .ggbf-field-date input {
        border-width: 3px;
    }
    
    .ggbf-checkbox {
        border-width: 3px;
    }
}

/* ============================================================================
   MÉTODOS DE PAGAMENTO
   ========================================================================= */

.ggbf-payment-methods-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ggbf-payment-methods-section h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.ggbf-payment-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.ggbf-payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ggbf-payment-method {
    display: block;
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.ggbf-payment-method:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.ggbf-payment-method input[type="radio"] {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

.ggbf-payment-method input[type="radio"]:checked + .ggbf-payment-method-content {
    font-weight: 600;
}

.ggbf-payment-method:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
    box-shadow: 0 2px 12px rgba(0, 124, 186, 0.15);
}

.ggbf-payment-method-content {
    margin-left: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ggbf-payment-logo {
    width: auto;
    height: 24px;
    max-width: 60px;
    object-fit: contain;
}

.ggbf-payment-name {
    font-size: 16px;
    color: #333;
}

.ggbf-payment-note {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

.ggbf-payment-info {
    margin: 0;
    padding: 12px 16px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.ggbf-payment-info p {
    margin: 0;
}

.ggbf-no-payment-methods {
    text-align: center;
    padding: 24px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.ggbf-no-payment-methods .ggbf-error {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .ggbf-payment-methods-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .ggbf-payment-method {
        padding: 12px;
    }
    
    .ggbf-payment-method-content {
        margin-left: 30px;
        gap: 8px;
    }
    
    .ggbf-payment-logo {
        height: 20px;
        max-width: 50px;
    }
    
    .ggbf-payment-name {
        font-size: 14px;
    }
}

/* Fallback para navegadores que não suportam :has() */
@supports not selector(:has(*)) {
    .ggbf-payment-method input[type="radio"]:checked {
        border-color: #007cba;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ggbf-custom-fields-container > *,
    .ggbf-field-text input,
    .ggbf-field-textarea textarea,
    .ggbf-field-select select,
    .ggbf-field-country select,
    .ggbf-field-state select,
    .ggbf-field-date input,
    .ggbf-checkbox,
    .ggbf-payment-method {
        animation: none;
        transition: none;
    }
} 