/* tm-style.css */

.tm-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 15px; /* Add some padding so it doesn't touch the very edges of the screen */
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.tm-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tm-header {
    background-color: #556b2f; /* Olive green from image */
    color: white;
    padding: 15px 20px;
    text-align: left;
}

.tm-header h2 {
    margin: 0;
    font-size: 18px;
    color: white;
}

#tm-form {
    padding: 20px;
    background: white;
}

.tm-step {
    display: none;
}
.tm-step.active {
    display: block;
}

/* Step 1: Templates */
.tm-template-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tm-template-selector select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.tm-templates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-template-item {
    padding: 15px;
    background: #f1f3f4;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.tm-template-item i {
    margin-right: 10px;
    color: #888;
}

.tm-template-item.active {
    background: #e8ecef;
}

/* Step 2: Measurements */
.tm-measurement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 992px) {
    .tm-measurement-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.tm-input-group {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-input-group i {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.tm-input-group div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tm-input-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.tm-input-group input {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    outline: none;
}

/* Step 3: Designs */
#tm-step-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    #tm-step-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-design-category {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.tm-design-category h3 {
    font-size: 15px;
    color: #556b2f;
    margin-bottom: 12px;
    margin-top: 0;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
}

.tm-radio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.tm-radio-label input[type="radio"] {
    display: none;
}

.tm-radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    position: relative;
}

.tm-radio-label input[type="radio"]:checked + .tm-radio-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: #556b2f;
    border-radius: 50%;
}

/* Step 4: Customer Info & Slip */
.tm-customer-info input, .tm-customer-info textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Footer Nav */
.tm-footer-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tm-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tm-dot {
    width: 30px;
    height: 30px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #666;
}

.tm-dot.active {
    background: #556b2f;
    color: white;
}

.tm-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 10px;
    max-width: 50px;
}

.tm-nav-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
}

.tm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.tm-btn-outline {
    background: #f1f3f4;
    color: #333;
}

.tm-btn-primary {
    background: #556b2f;
    color: white;
}

.tm-btn-secondary {
    background: #333;
    color: white;
    margin-top: 10px;
}

.tm-btn-success {
    background: #28a745;
    color: white;
}

/* Slip Card Styles */
.tm-slip-card {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
    color: #000;
}
.tm-slip-header h3 { margin-top:0; font-size: 16px; }
.tm-slip-header p { margin: 2px 0; font-size: 14px; }
.tm-slip-title-row { display: flex; justify-content: space-between; align-items: center; }
.tm-slip-title-row h4 { margin: 0; }
.tm-slip-measurements, .tm-slip-designs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.slip-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}
.slip-item i { width: 16px; text-align: center; }
.slip-item strong { margin-left: auto; }
.tm-actions-final {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
