﻿.rfq-support-info {
  margin: 20px 0;
  padding: 15px 20px;
  background-color: #f0f8ff;
  border-left: 4px solid #ff9600;
  border-radius: 4px;
}

.rfq-support-info p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.rfq-support-info strong {
  color: #2c3e50;
}

.rfq-support-info a {
  color: #ff9600;
  text-decoration: none;
  font-weight: 600;
}

.rfq-support-info a:hover {
  text-decoration: underline;
}

.request-list-page .info {
  margin: 0 0 10px;
  border-top: 1px solid #e6e6e6;
  background-color: #f9f9f9;
  padding: 20px;
  line-height: 26px;
  color: #444;
}

.request-list-page .button-2 {
  display: inline-block;
  margin: 0 0 0 10px;
  border: none;
  padding: 0 0 0 18px;
  font-size: 12px;
  color: #444;
  background-color: white;
  background: url('~/images/details.png') left center no-repeat
}

.request-list-page .button-2:hover,
.request-list-page .button-2:focus {
  color: #4ab2f1;
}

.request-list-page .section {
  display: block;
  width: auto;
  margin: 0 0 40px;
  vertical-align: top;
}

.request-list-page .buttons {
  position: absolute;
  top: 5px;
  right: 10px;
}

.request-options .common-buttons,
.quote-options .common-buttons {
  text-align: center;
}

.request-page .fieldset .title {
  text-align: left
}

textarea {
  resize: vertical;
  overflow: auto;
  min-height: 70px;
  max-height: 250px;
  width: 97%;
  margin: 10px;
}

.rfq-button-2 {
  cursor: pointer;
  border: none;
  background-color: #aaa;
  padding: 10px 15px;
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  margin: 10px 0;
  font-size: 15px;
}

.rfq-button-2:hover,
.rfq-button-2:focus {
  background-color: #999;
}

input[type="number"] {
  height: 36px; /*safari padding fix*/
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: middle;
  max-width: 100%;
}

.request-page .data-table label {
  display: none;
}

.request-page .common-buttons button {
  margin: 5px;
}

@media (max-width: 1366px) {
  .request-page .data-table colgroup, .request-page .data-table thead {
    display: none;
  }

  .request-page .data-table {
    text-align: center;
  }

  .request-page .data-table tbody {
    display: block;
    overflow: hidden;
  }

  .request-page .data-table tr {
    display: block;
    float: left;
    width: 100%;
    margin: 40px 0 0;
    border: 1px solid #ddd;
  }

  .request-page .data-table td {
    display: block;
    border: 0;
    padding: 10px;
  }

  .request-page .data-table td label, .request-page .data-table td span{
    display: inline-block;
    width: calc(50% - 10px);
    text-align: start;
  }

  .request-page .data-table td.product {
    min-width: 0;
    border-bottom: 1px solid #ddd;
    padding: 5px 10px 15px;
    text-align: center;
  }

  .request-page .data-table label {
    display: inline-block;
  }
}

/* RFQ Modal Styles */
.rfq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfq-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: rfqModalSlideIn 0.3s ease-out;
}

@keyframes rfqModalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rfq-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rfq-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.rfq-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.rfq-modal-close:hover {
    color: #333;
}

.rfq-modal-body {
    padding: 20px;
}

.rfq-success-message {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.rfq-item-count {
    margin-bottom: 15px;
    color: #666;
}

.rfq-quantity-wrapper {
    margin: 20px 0;
}

.rfq-quantity-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.rfq-quantity-wrapper .add-to-cart-qty-wrapper {
    display: inline-block;
    position: relative;
}

.rfq-plus-btn,
.rfq-minus-btn {
    cursor: pointer;
    user-select: none;
}

.rfq-customer-notes {
    margin: 20px 0;
}

.rfq-customer-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.rfq-notes-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.rfq-notes-textarea:focus {
    outline: none;
    border-color: #ff9600;
    box-shadow: 0 0 0 2px rgba(255, 150, 0, 0.1);
}

.rfq-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rfq-modal-footer button {
    /* Remove custom styling - use site's existing button styles */
    width: auto !important;
    min-width: 150px;
    white-space: nowrap;
}

/* Header Profile Menu - RFQ Icon */
.ico-rfq:before {
    content: "\41";
}

.profile-menu-box .ico-rfq {
    white-space: nowrap;
}

/* Make profile menu wider to fit RFQ text */
.profile-menu-box {
    min-width: 180px;
}

/* Document upload section */
.document-upload-section {
    margin-top: 10px;
}

.document-upload-section .upload-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.document-upload-section .upload-controls input[type="file"] {
    flex: 1;
    min-width: 200px;
}

.document-upload-section .upload-controls button {
    white-space: nowrap;
}

.document-upload-section .mb-2 {
    margin-bottom: 10px;
}

.document-upload-section .hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Quick Actions Section */
.quick-actions {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.quick-actions .quick-upload-btn {
    min-width: 200px;
}

.quick-actions .quick-upload-btn i {
    margin-right: 8px;
}

.rfq-file-upload {
    margin: 20px 0;
}

.rfq-file-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.rfq-file-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .rfq-modal-content {
        width: 95%;
        margin: 20px;
    }

    .rfq-modal-footer {
        flex-direction: column;
    }

    .rfq-modal-footer button {
        width: 100%;
    }

    .quick-actions {
        padding: 10px;
        margin: 15px 0;
    }

    .quick-actions .quick-upload-btn {
        width: 100%;
        min-width: 0;
    }

    .document-upload-section .upload-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .document-upload-section .upload-controls input[type="file"] {
        width: 100%;
        min-width: 0;
    }

    .document-upload-section .upload-controls button {
        width: 100%;
        text-align: center;
    }

    .document-upload-section .download-document-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* RFQ Help Banner Styles */
.rfq-help-banner {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
}

.rfq-help-banner.compact {
    padding: 0;
}

.rfq-help-toggle {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.rfq-help-toggle:hover {
    background: #e9ecef;
}

.rfq-help-toggle i {
    color: #ff9600;
    margin-right: 10px;
}

.toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.rfq-help-content {
    padding: 20px;
}

.rfq-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 0 20px 0;
}

.rfq-step {
    background: #fff;
    padding: 20px 15px 15px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    position: relative;
    padding-top: 45px;
}

.step-number {
    position: absolute;
    top: 12px;
    left: 15px;
    width: 28px;
    height: 28px;
    background: #ff9600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.rfq-step strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
}

.rfq-step ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.rfq-step li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.rfq-step li:last-child {
    margin-bottom: 0;
}

.rfq-help-contact {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff9600;
    margin-top: 0;
}

.rfq-help-contact strong {
    color: #333;
}

.rfq-help-contact a {
    color: #ff9600;
    text-decoration: none;
    font-weight: 600;
}

.rfq-help-contact a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for help banner */
@media (max-width: 992px) {
    .rfq-workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rfq-workflow-grid {
        grid-template-columns: 1fr;
    }

    .rfq-help-toggle {
        font-size: 14px;
        padding: 12px 15px;
    }

    .rfq-help-content {
        padding: 15px;
    }

    .rfq-step {
        padding-top: 40px;
    }
}
