#dca-simulator {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.dca-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.dca-stat-box,
.dca-form-wrapper,
.dca-chart-wrapper {
    box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2);
}

.dca-stat-box {
    padding: 14px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    flex-flow: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}

.dca-stat-value {
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: #333;
}

.dca-stat-label {
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #8E8E93;
}

.dca-form-box {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 30px;
    background: #fff;
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
}

.dca-form-box h3 {
    font-family: 'Montserrat', 'sans-serif' !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 100%;
    color: #333;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E2E2;
    width: 100%;
    max-width: 100%;
}

#dca-simulator-form {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

#dca-simulator-form .dca-field {
    display: flex;
    flex-flow: column;
    width: 100%;
    max-width: 100%;
}

#dca-simulator-form label span {
    display: inline-block;
    width: 100%;
    margin-bottom: 8px;
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
    vertical-align: middle;
    color: #333;
}

#dca-simulator-form select:focus,
#dca-simulator-form input:focus {
    outline: none;
}

#dca-simulator-form select::placeholder,
#dca-simulator-form input::placeholder {
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

.dca-field .custom-select-wrapper .selected-option,
#dca-simulator-form select,
#dca-simulator-form input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #E2E2E2;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

#start-period,
#frequency {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    position: relative;
}

label:has(#start-period),
label:has(#frequency) {
    position: relative;
}

label:has(#start-period) svg,
label:has(#frequency) svg {
    position: absolute;
    right: 25px;
    bottom: 25px;
}

#dca-simulator-form input#amount {
    padding-left: 24px;
}

#dca-simulator-form .dca-field label:has(#amount) {
    position: relative;
}

#dca-simulator-form .dca-field label:has(#amount)::before {
    content: '$';
    display: flex;
    position: absolute;
    left: 16px;
    bottom: 5px;
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

#dca-simulator-form .dca-field button:focus {
    outline: none;
}

#dca-simulator-form .dca-field:has(button) {
    padding-top: 24px;
    border-top: 1px solid #E2E2E2
}

#dca-simulator-form .dca-field button {
    background: #F07D00;
    border-radius: 40px;
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff;
    transition: all 500ms ease;
    height: 44px;
    border: 1px solid #F07D00;
    cursor: pointer;
}

#dca-simulator-form .dca-field button:hover {
    background: #fff;
    color: #F07D00;
}

.dca-field #crypto {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

.custom-select-wrapper::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 14px;
    height: 8px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.dca-field .custom-select-wrapper .selected-option {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.dca-field .crypto-option span {
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

.dca-field .custom-select-wrapper img {
    width: 33px;
    height: 32px;
    object-fit: contain;
}

.dca-chart-wrapper {
    margin-top: 15px;
    background-color: #fff;
    padding-top: 20px;
}

.dca-chart-wrapper h3 {
    font-family: 'Montserrat', 'sans-serif' !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.2;
    color: #333;
    width: 100%;
    text-align: center;
    margin-bottom: 54px;
}

#simulation-chart {
    width: 100% !important;
    aspect-ratio: 2/1;
    height: auto;
}

@media only screen and (min-width: 992px) {
    #dca-simulator {
        padding: 40px 0;
    }

    .dca-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dca-stat-box {
        padding: 14px 30px;
    }

    .dca-stat-value {
        font-size: 32px;
    }

    .dca-stat-label {
        font-size: 16px;
    }

    .dca-form-box {
        max-width: 300px;
    }

    .dca-simulator-content {
        display: flex;
        flex-flow: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 15px;
    }

    .dca-field .custom-select-wrapper .selected-option,
    #dca-simulator-form select,
    #dca-simulator-form input {
        padding: 12px 16px;
        height: 56px;
    }

    .dca-form-wrapper {
        flex: 0 0 300px;
    }

    #dca-simulator-form input#amount {
        padding-left: 23px;
    }

    #dca-simulator-form .dca-field label:has(#amount)::before {
        left: 16px;
        bottom: 16px;
    }

    .dca-chart-wrapper {
        flex: 1;
        background: #fff;
        border-radius: 4px;
    }

    .dca-chart-wrapper {
        margin-top: 0;
        padding: 30px 70px 46px;
    }
}


/* crypto select */
.custom-select-wrapper {
    position: relative;
}

/* Wrapper for custom select */
#crypto-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    font-family: sans-serif;
}

/* Selected option styling */
#crypto-wrapper .selected-option {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    background-color: #fff;
}

#crypto-wrapper .selected-option img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* Dropdown */
#crypto-custom {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.crypto-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.crypto-option img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.crypto-option:hover {
    background-color: #f0f0f0;
}

.crypto-option.selected {
    background-color: #e6f7ff;
}

/* Optional: hide real select */
#crypto {
    display: none;
}
