/* MMS Quote Manager - Frontend Styles */

.mms-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

/* ---- Quote Summary ---- */
.mms-quote-summary {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e63946;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.mms-quote-summary h2,
.mms-form-wrap h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1a1a2e;
}

.mms-badge {
    background: #e63946;
    color: #fff;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: normal;
    vertical-align: middle;
}

/* ---- Table ---- */
.mms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mms-table th,
.mms-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.mms-table th {
    font-weight: 600;
    color: #555;
    width: 35%;
    white-space: nowrap;
}

.mms-table td {
    color: #1a1a2e;
}

.mms-file-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

.mms-file-link:hover {
    text-decoration: underline;
}

/* ---- Form ---- */
.mms-form-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px;
}

.mms-info {
    background: #ebf8ff;
    border-left: 3px solid #3182ce;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: #2b6cb0;
    margin-bottom: 24px;
}

.mms-form .mms-field {
    margin-bottom: 20px;
}

.mms-field-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.mms-field-group .mms-field {
    flex: 1;
    margin-bottom: 0;
}

.mms-field--small {
    max-width: 140px;
    flex: 0 0 140px !important;
}

.mms-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.mms-req {
    color: #e63946;
}

.mms-form input[type="text"],
.mms-form input[type="email"],
.mms-form input[type="number"],
.mms-form select,
.mms-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mms-form input:focus,
.mms-form select:focus,
.mms-form textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.mms-form textarea {
    resize: vertical;
}

/* ---- Button ---- */
.mms-btn {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 8px;
}

.mms-btn:hover {
    background: #c62f3b;
}

.mms-btn--choose {
    background: #38a169;
    width: auto;
    padding: 10px 22px;
    font-size: 14px;
}

.mms-btn--choose:hover {
    background: #2f855a;
}

/* ---- Offer Cards (buyer selection) ---- */
.mms-offer-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.mms-offer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mms-offer-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e63946;
}

.mms-offer-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .mms-field-group {
        flex-direction: column;
    }
    .mms-field--small {
        max-width: 100%;
        flex: 1 !important;
    }
    .mms-table th {
        width: auto;
    }
}
