/* Step 12 Success Message Styles */
.tm-success-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.tm-success-message svg {
    margin-bottom: 20px;
}

.tm-success-message h2 {
    font-size: 26px;
    font-weight: 700;
    color: #292929;
    margin-bottom: 12px;
}

.tm-success-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Phase 2: Mini Summary Header */
.tm-mini-summary-box {
    background: #EFEFEF;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-mini-summary-left {
    display: flex;
    align-items: center;
}

.tm-mini-summary-right {
    text-align: right;
}

.tm-phase2-title {
    font-size: 20px;
    font-weight: 700;
    color: #292929;
    margin-bottom: 8px;
    margin-top: 0;
}

/* Make sure new pills match old behavior */
#tm-new-pills-container {
    margin-bottom: 24px;
}

/* Final Difference Calculation Row (Step 11) */
.tm-final-difference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 24px;
    margin-top: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #77625C;
}

.tm-final-difference-label {
    color: #77625C;
}

/* Step 6: Valuation Breakdown Layout */
.tm-valuation-display-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-top: none;
    gap: 20px;
}

.tm-valuation-left {
    flex: 1;
}

.tm-valuation-left h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #292929;
    text-align: left;
}

.tm-valuation-left p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.tm-valuation-right {
    text-align: right;
    white-space: nowrap;
}

.tm-estimated-amount {
    font-size: 28px;
    font-weight: 700;
    color: #77625C; 
}

/* Actions Section */
.tm-valuation-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.tm-valuation-actions .trade-in-now {
    border-radius: 60px;
    background: var(--brown-main, #77625C);
    display: inline-block;
    width: 50%;
    text-transform: none;
    color: white;
    font-weight: 500;
}
.tm-valuation-actions .trade-in-now:hover {
    background: #292929;
    color: white;
}
.tm-valuation-actions .add-to-wallet {
    border-radius: 60px;
    background: transparent;
    border: 1px solid var(--brown-main, #77625C);
    display: inline-block;
    width: 50%;
    text-transform: none;
    color: #77625C;
    font-weight: 500;
}
.tm-valuation-actions .add-to-wallet:hover {
    background: #292929;
    color: white;
    border: none;
}

.tm-btn-primary {
    background: #77625C;
    color: #fff;
    border: 1px solid #77625C;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tm-btn-primary:hover {
    background: #5a4944;
    border-color: #5a4944;
}

/* Step 5: Custom Condition Layout */
.tm-condition-wrapper {
    border-radius: 16px;
    margin-top: 20px;
}

.tm-selected-device-header {
    display: flex;
    align-items: center;
    border-radius: 24px 24px 0 0;
    background: rgba(119, 98, 92, 0.05);
    padding: 16px 40px;
}

.tm-selected-img {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tm-selected-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tm-selected-text {
    flex-grow: 1;
}

.tm-selected-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 400;
    color: #292929;
}

.tm-selected-text p {
    margin: 0;
    font-size: 14px;
    color: #4a4a4a;
}

.tm-remove-device {
    color: #c9302c;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.tm-status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 24px;
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    gap: 10px;
}

.tm-status-card-box {
    border-radius: 16px;
    border: 1px solid rgba(119, 98, 92, 0.15);
    padding: 16px 24px;
}

.tm-status-card-box h3 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #292929;
}

.tm-status-select-btn {
    background: #77625C!important;
    color: white!important;
    border: none!important;
    width: 100%!important;
    padding: 12px!important;
    border-radius: 60px!important;
    cursor: pointer!important;
    font-size: 14px;
    font-weight: 400 !important;
    text-transform: none !important;
    margin-bottom: 16px!important;
    transition: background 0.3s;
}

.tm-status-select-btn:hover {
    background: #5a4944;
}

.tm-status-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-status-features-list li {
    font-size: 13px;
    color: #292929;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.tm-status-features-list li svg {
    flex-shrink: 0;
}

/* Login Message Styles */
.tm-login-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    color: #292929;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tm-login-message h3 {
    margin-top: 0;
    color: #77625C;
    font-size: 24px;
    margin-bottom: 15px;
}

.tm-login-message p {
    font-size: 16px;
    color: #666;
}

.tm-login-message a {
    color: #77625C;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #77625C;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

/* New Step Settings Styles */
.tm-step-title {
    font-weight: bold;
}
.tm-subtitle {
    font-size: 14px;
    color: #525252;
    margin-bottom: 20px;
}

.tm-card-logo {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    width: 90px;
    aspect-ratio: 1 / 1;
}
.tm-card span {
    display: block;
    font-weight: 500;
}

.tm-trade-wrapper {
    margin: 40px auto;
    color: #292929;
}

/* Pills Breadcrumbs Layout */
.tm-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tm-pill {
    border-radius: 24px;
    background: #D9D3D1; 
    padding: 6px 14px;   
    color: #292929;
    font-size: 16px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.tm-pill-close {
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #292929;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tm-pill-close:hover {
    opacity: 1;
}

.tm-step { display: none; }
.tm-step.active { display: block; animation: fadeIn 0.5s; }

.tm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tm-card, .tm-option {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: none;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.tm-card:hover, .tm-option:hover {
    color: white;
    border-radius: 16px;
    background: #77625C;
    border: 1px solid #77625C;
}

.tm-card:hover span {
    color: white;
}

.tm-step[data-step="1"] .tm-card:hover img, .tm-step[data-step="7"] .tm-card:hover img, .tm-step[data-step="1"] .tm-option:hover img, .tm-step[data-step="7"] .tm-option:hover img {
    filter: invert(100%);
}

.tm-price {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2ecc71;
    margin: 20px 0;
}

.tm-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}