    .calculator {
        padding: 10px;
    }

    .calculator * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .calculator-row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0;
        display: flex;
        flex-wrap: wrap;
        margin-top: calc(var(--bs-gutter-y) * -1);
        margin-right: calc(var(--bs-gutter-x) * -.5);
        margin-left: calc(var(--bs-gutter-x) * -.5);
        --bs-gutter-x: 0.5rem;
    }

    .calculator-row>* {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin-top: var(--bs-gutter-y);
    }

    .calculator-col-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .calculator-form-group {
        margin-bottom: 1rem;
    }

    .calculator-form-control {
        display: block;
        width: 100%;
        height: calc(2.25rem + 2px);
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    @media screen and (prefers-reduced-motion: reduce) {
        .calculator-form-control {
            transition: none;
        }
    }

    select.calculator-form-control[size],
    select.calculator-form-control[multiple] {
        height: auto;
    }

    .calculator-form-control:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .calculator select,
    .calculator input,
    .calculator button,
    .calculator .result {
        height: 60px !important;
        box-sizing: border-box;
        width: 100%;
        font-size: 1.4em;
    }

    .calculator .result {
        text-align: center;
    }

    /* Custom Select */
    .custom-dropdown {
        position: relative;
        width: 100%;
        font-size: 1rem;
    }

    .dropdown-display {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .dropdown-display .flag img {
        width: 48px;
        height: 48px;
    }

    .dropdown-display .symbol {
        display: block;
        font-size: 1.4rem;
        font-weight: 900;
        margin-bottom: 3px;
    }

    .dropdown-arrow {
        margin-inline-start: auto;
        width: 1.5em;
        height: 1.5em;
        background: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center;
        background-size: contain;
        transition: transform 0.2s ease;
    }

    .custom-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        z-index: 1000;
    }

    .dropdown-container.open {
        display: flex;
    }

    .dropdown-search {
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 0.5rem;
        font-size: 1rem;
        outline: none;
        width: 100%;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .dropdown-list {
        max-height: 300px;
        overflow-y: auto;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        cursor: pointer;
    }

    .dropdown-item:hover,
    .dropdown-item.focused {
        background: #f0f0f0;
    }

    .dropdown-item.selected {
        background: #e0e0e0;
    }

    .dropdown-item .flag img {
        width: 24px;
        height: 24px;
    }

    .dropdown-item .symbol {
        font-weight: 700;
    }

    .dropdown-item .name {
        font-size: 0.9rem;
        color: #666;
    }

    /* No results state */
    .dropdown-empty {
        padding: 0.75rem 1rem;
        color: #777;
        font-size: 0.95rem;
    }

    .dropdown-group {
        font-weight: bold;
        font-size: 0.9rem;
        color: #444;
        padding: 0.4rem 1rem;
        background: #fafafa;
        border-top: 1px solid #eee;
    }
