.tbg-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.tbg-form-group {
    margin-bottom: 18px;
}

.tbg-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.tbg-field {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.tbg-field:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.tbg-field.tbg-field--error {
    border-color: #dc3545;
}

.tbg-form-row {
    display: flex;
    gap: 15px;
}

.tbg-half {
    flex: 1;
}

.tbg-toggle-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.tbg-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
}

.tbg-luggage-count {
    margin-top: 10px;
    padding-left: 28px;
}

.tbg-stops-container .tbg-stop-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.tbg-stops-container .tbg-stop-row input {
    flex: 1;
}

.tbg-stop-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.tbg-btn-secondary {
    background: none;
    border: 1px dashed #aaa;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.tbg-btn-secondary:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.tbg-price-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.tbg-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.tbg-price-total {
    font-size: 22px;
    font-weight: 700;
}

.tbg-price-highlight {
    font-weight: 600;
    color: #1a73e8;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 6px;
}

.tbg-price-muted {
    color: #888;
    font-size: 13px;
}

.tbg-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

.tbg-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.tbg-btn-primary:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.tbg-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tbg-btn-primary.tbg-loading {
    position: relative;
    color: transparent;
}

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

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

.tbg-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.tbg-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tbg-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Confirmation widget */
.tbg-confirmation {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.tbg-confirmation-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 16px;
}

.tbg-confirmation-icon--pending {
    color: #ffc107;
}

.tbg-confirmation-title {
    margin-bottom: 12px;
}

.tbg-confirmation-message {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tbg-confirmation-details {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.tbg-confirmation-details p {
    margin: 8px 0;
    font-size: 14px;
}

/* Pricing widget */
.tbg-pricing-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.tbg-pricing-title {
    margin-bottom: 20px;
}

.tbg-pricing-main {
    margin-bottom: 24px;
}

.tbg-pricing-label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.tbg-pricing-value {
    font-size: 36px;
    font-weight: 700;
}

.tbg-pricing-breakdown {
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.tbg-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.tbg-pricing-note {
    color: #888;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
}

.tbg-pricing-note span {
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .tbg-form {
        padding: 20px 16px;
    }

    .tbg-form-row {
        flex-direction: column;
        gap: 0;
    }

    .tbg-price-total {
        font-size: 18px;
    }
}
