@import url(../variables.css);

.quotation-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}

.contact-details-section {
    background: white;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.customer-contact-details {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.required-star {
    color: #e74c3c;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--xinshengGreen);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.quote-btn {
    background-color: var(--xinshengGreen);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
    width: 150px;
}

.quote-btn:not(:disabled):hover {
    background-color: #1a7a56;
}

.quote-btn:disabled{
    opacity: 0.3;
    cursor: not-allowed;
}



@media (max-width: 768px) {
    .contact-details-section {
        padding: 20px;
        margin-top: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .quote-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
}

.quotation-page .page-title {
    background-color: white;
    padding: 18px 25px;
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 500;
    color: #2c3e50;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
}

.quotation-page .quote-product {
    background-color: white;
    margin-bottom: 15px;
    display: flex;
    padding: 10px;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quotation-page .quote-product:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.2px);
}

.quotation-page .quote-product .product-image {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quotation-page .quote-product .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.quotation-page .quote-product .product-details {
    width: 220px;
    padding-right: 10px;
    margin: auto 0;
}

.quotation-page .quote-product .product-details .product-title {
    text-decoration: none;
}

.quotation-page .quote-product .product-details .product-title h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.quotation-page .quote-product .product-details .product-title h3:hover {
    color: var(--xinshengGreen);
}

.quotation-page .quote-product .product-details p {
    font-size: 14px;
    margin: 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.quotation-page .quote-product .customer-requirements {
    flex: 1;
    min-width: 250px;
    padding-right: 15px;
    margin: auto 0;
}

.quotation-page .quote-product .customer-requirements h3 {
    font-size: 15px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 500;
}

.quotation-page .quote-product .requirements-text {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.quotation-page .quote-product .requirements-text:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.quotation-page .quote-product .product-quantity {
    margin: auto 0;
    width: 120px;
}

.quotation-page .quote-product .product-quantity h3 {
    font-size: 15px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 500;
}

.quotation-page .quote-product .quantity-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.2s;
}

.quotation-page .quote-product .quantity-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.quotation-page .quote-product .remove-product {
    position: absolute;
    top: 12px;
    right: 12px;
}

.quotation-page .quote-product .remove-icon {
    color: #95a5a6;
    font-size: 22px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 20px;
}

.quotation-page .quote-product .remove-icon:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.empty-quote-msg {
    background-color: white;
    padding: 40px;
    text-align: center;
    color: #7f8c8d;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.empty-quote-msg .empty-quote-btn {
    text-decoration: none;
    background-color: var(--xinshengBlue);
    color: white;
    padding: 8px 16px;
    border-radius: 2px;
}

.empty-quote-msg .empty-quote-btn:hover {
    background-color: var(--xinshengGreen);
    cursor: pointer;
}


@media (max-width: 768px) {
    .quotation-page .quote-product {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .quotation-page .quote-product .product-details,
    .quotation-page .quote-product .customer-requirements {
        width: 100%;
        padding-right: 0;
    }

    .quotation-page .quote-product .product-image {
        width: 100px;
        height: 80px;
    }

    .quotation-page .quote-product .product-quantity {
        width: 80px;
    }
}


/* Container for the message */
.submission-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Success message styling */
.submission-message.success {
    background-color: #eaf8e4;
    color: #4caf50;
    border: 2px solid #4caf50;
}

.submission-message.error {
    background-color: #fdecea;
    color: #f44336;
    border: 2px solid #f44336;
}

/* Icon styles */
.submission-message .message-icon {
    font-size: 3em;
    margin: 20px 0;
    color: inherit;
}

/* Heading style */
.submission-message h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Paragraph styling */
.submission-message p {
    font-size: 1em;
    margin: 10px 0;
    line-height: 1.5;
}

/* Link styling */
.submission-message .text-link {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

/* Button Styling */
.submission-message .button {
    background-color: #0073e6;
    color: #fff;
    padding: 12px 25px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.submission-message .button:hover {
    background-color: #005bb5;
}

.submission-message .button:focus {
    outline: none;
}

/* Button for the "Try Again" */
.submission-message button {
    background-color: #ff7043;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
}

.submission-message button:hover {
    background-color: #e64a19;
}

.submission-message button:focus {
    outline: none;
}

/* Responsiveness */
@media (max-width: 768px) {
    .submission-message {
        padding: 20px;
    }

    .submission-message h2 {
        font-size: 1.2em;
    }

    .submission-message p {
        font-size: 0.9em;
    }

    .submission-message .button,
    .submission-message button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .submission-message .message-icon {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .submission-message {
        padding: 15px;
    }

    .submission-message h2 {
        font-size: 1em;
    }

    .submission-message p {
        font-size: 0.85em;
    }

    .submission-message .button,
    .submission-message button {
        font-size: 0.85em;
        padding: 8px 15px;
    }

    .submission-message .message-icon {
        font-size: 2em;
    }
}


/* HTML: <div class="loader"></div> */
.get-quote-btn-loader {
    width: 40px;
    margin: auto;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#ffffff 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 3s infinite linear;
  }
  @keyframes l3 {
      20%{background-position:0%   0%, 50%  50%,100%  50%}
      40%{background-position:0% 100%, 50%   0%,100%  50%}
      60%{background-position:0%  50%, 50% 100%,100%   0%}
      80%{background-position:0%  50%, 50%  50%,100% 100%}
  }