h1 {
    margin: 0 !important;
}
.cost-before-retail-header {
    margin: 35px 35px 20px 35px;
}
.header-title {
    font-size: 28px;
    font-weight: 600;
    color: #3a3a49;
}
.header-subtitle {
    font-size: 14px;
    color: #3a3a49;
    margin: 0;
}

.edit-btn {
    font-size: 14px;
    background-color: #6143e4;
    padding: 10px 30px;
    margin-top: 8px;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.edit-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    color: white;
}

.main-container {
    margin: 0 35px 35px 35px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e2e3e5;
}
.main-container .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.title h3 {
    font-weight: 600;
    font-size: 20px;
    color: #3a3a49;
}

.calculated-costs {
    background-color: #f1f6f9;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.calculated-costs .label {
    font-size: 20px;
    font-weight: bold;
    color: #3a3a49;
    margin: 0;
}
.cost-item {
    margin: 10px 0;
}
.cost-item .label {
    font-size: 14px;
    font-weight: 600;
    color: #3a3a49;
}
.cost-item .hint {
    font-size: 14px;
    color: #69696e;
    margin: 0;
}
.manual-input-cost {
    margin-top: 20px;
}
.manual-input-cost h3 {
    font-weight: 600;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cost-grid .form-group:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center, end;
    gap: 10px;
    text-align: center;
}
.form-group {
    margin: 0 !important;
}
.form-label {
    font-size: 14px;
    color: #3a3a49;
    font-weight: 600;
}
.cost-grid .form-group input {
    height: fit-content;
    padding: 8px;
    font-size: 14px;
    border-radius: 0 6px 6px 0;
    color: #3a3a49;
}
.input-wrapper {
    display: flex;
}

.dollar-sign {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f6f9;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #ccc;
    border-right: none;
}
.total-cost {
    margin-top: 20px;
    background-color: #e2edf3;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-cost .label {
    font-size: 20px;
    font-weight: bold;
    color: #3a3a49;
    margin: 0;
    padding: 0;
}
.total-cost .value {
    font-size: 20px;
    color: black;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.hidden {
    display: none;
}
.hint {
    font-size: 14px;
    color: #69696e;
    margin: 0;
}

@media (max-width: 1023px) {
    .cost-before-retail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .title h3,
    .manual-input-cost h3 {
        font-size: 20px;
    }

    .calculated-costs .label,
    .total-cost .label {
        font-size: 20px;
    }

    .cost-grid {
        grid-template-columns: 1fr;
    }
    .hint {
        max-width: fit-content;
    }
}

/* Mobile Styles (≤767px) */
@media (max-width: 767px) {
    .cost-before-retail-header {
        margin: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .main-container {
        margin: 15px;
    }

    .title {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .title h3,
    .manual-input-cost h3 {
        font-size: 18px;
    }

    .calculated-costs {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .total-cost {
        padding: 20px;
    }

    .calculated-costs .label,
    .total-cost .label {
        font-size: 18px;
    }

    .cost-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .hint {
        max-width: fit-content;
    }
}
