/* DG Balloon Calculator Styles */
.dg-balloon-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.disabled-label {
    color: #2b2b2b;
    cursor: not-allowed;
}

:disabled {
    background-color: lightgray !important;
    border-color: #ccc;
    color: #2b2b2b;
    cursor: not-allowed;
    opacity: 0.8;
}
.dg-balloon-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.dg-balloon-header h3 {
    color: #0073aa;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.dg-balloon-description {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.dg-balloon-form {
    margin-bottom: 30px;
}

.dg-balloon-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.dg-balloon-section h4 {
    color: #333;
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.dg-balloon-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dg-balloon-row:last-child {
    margin-bottom: 0;
}

.dg-balloon-field {
    margin-bottom: 20px;
}

.dg-balloon-field:last-child {
    margin-bottom: 0;
}

.dg-balloon-half {
    flex: 0 0 calc(50% - 10px);  /* half width minus half the gap */
    max-width: calc(50% - 10px);
}

.dg-balloon-field label {
    display: block;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.dg-balloon-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.dg-balloon-input-group select {
    flex: 1;
    padding: 15px 40px 15px 15px; /* add right padding for the arrow */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    background: #ffffff url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 15px center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dg-balloon-input-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dg-balloon-input-group input {
    flex: 1;
    padding: 15px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.dg-balloon-input-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dg-balloon-field input[type="email"] {
    width: 100%;
    padding: 15px 15px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dg-balloon-field input[type="email"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
    outline: none;
}

.dg-balloon-field input[type="email"].error {
    border-color: #dc3545 !important;
    /* background-color: #fff5f5; */
}

.dg-balloon-currency,
.dg-balloon-unit {
    padding: 12px 15px;
    background: #e9ecef;
    border: 2px solid #ced4da;
    color: #495057;
    font-weight: 600;
    font-size: 16px;
}

.dg-balloon-currency {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.dg-balloon-unit {
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.dg-balloon-currency + input {
    border-left: none;
    border-radius: 0 4px 4px 0;
}

input + .dg-balloon-unit {
    border-left: none;
}

.dg-balloon-help {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.dg-balloon-actions {
    text-align: center;
    margin-top: 30px;
}

.dg-balloon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 200px;
}

.dg-balloon-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.dg-balloon-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.dg-balloon-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dg-balloon-spinner {
    animation: spin 1s linear infinite;
    font-size: 18px;
}

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

/* Results Section */
.dg-balloon-results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #ced4da;
}

.dg-balloon-results-header {
    text-align: center;
    margin-bottom: 25px;
}

.dg-balloon-results-header h4 {
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.dg-balloon-results-note {
    color: #333;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.dg-balloon-comparison {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: stretch;
}

.dg-balloon-comparison-item {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dg-balloon-comparison-item h5 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.dg-balloon-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    min-width: 40px;
}

.dg-balloon-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.dg-balloon-payment-row:last-child {
    border-bottom: none;
}

.dg-balloon-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.dg-balloon-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.dg-balloon-savings {
    background: #d4edda;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #28a745;
}

.dg-balloon-savings h5 {
    color: #155724;
    font-size: 18px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.dg-balloon-savings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #c3e6cb;
}

.dg-balloon-savings-row:last-child {
    border-bottom: none;
}

.dg-balloon-savings-value {
    color: #155724;
    font-size: 18px;
    font-weight: 700;
}

/* Messages */
.dg-balloon-messages {
    margin-top: 20px;
}

.dg-balloon-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.dg-balloon-message.success {
    color: #007cba;
}

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

.dg-balloon-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table thead th {
    background-color: blue;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 15px;
}

.comparison-table tbody td {
    text-align: right;
    color: #333;
    font-weight: 500;
    border: 1px solid #ccc; 
    text-align: left;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.dg-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.dg-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    padding: 0 5px;
}

.slider-current {
    font-weight: bold;
    color: #0073aa;
    font-size: large;
}

input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #FFFFFF;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Custom thumb for WebKit browsers */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0073AA;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    margin-bottom: -5px;
}

/* Custom thumb for Firefox */
input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0073AA;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dg-balloon-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .dg-balloon-header h3 {
        font-size: 24px;
    }
    
    .dg-balloon-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dg-balloon-comparison {
        flex-direction: column;
    }
    
    .dg-balloon-vs {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .dg-balloon-payment-row,
    .dg-balloon-savings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .dg-balloon-btn {
        width: 100%;
        min-width: auto;
    }

    .dg-balloon-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .dg-balloon-wrapper {
        margin: 5px;
        padding: 10px;
    }
    
    .dg-balloon-section {
        padding: 15px;
    }
    
    .dg-balloon-header h3 {
        font-size: 20px;
    }
    
    .dg-balloon-input-group input,
    .dg-balloon-currency,
    .dg-balloon-unit {
        padding: 10px 12px;
        font-size: 14px;
    }

    #dg-dickson-ltv {
        padding: 0;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    #dg-balloon-results {
        width: auto;
        padding-left: 15px;
    }

    .comparison-table td {
        font-size: 13px;
        padding: 4px 6px;
    }

    .comparison-table thead th {
        font-size: 13px;
        padding: 4px 6px;
    }

    .dg-balloon-field input[type="email"] {
        padding: 10px 12px;
    }

    .dg-balloon-input-group select {
        padding: 10px 12px;
    }

    .dg-balloon-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .comparison-table td {
        font-size: 11px;
        padding: 4px 5px;
    }

    .comparison-table thead th {
        font-size: 11px;
        padding: 4px 5px;
    }
    
    .dg-balloon-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .dg-balloon-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .dg-balloon-btn {
        display: none;
    }
    
    .dg-balloon-form {
        display: none;
    }
}