/* Estimate Actions Section */
.section--estimate-actions {
    padding-bottom: 60px;
}

.estimate-actions {
    text-align: center;
}

.estimate-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding-left: 28px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn__icon {
    font-size: 1.1em;
}

.btn__text {
    line-height: 1;
}

/* Button Variants */
.btn--primary {
    background-color: #007cba;
    color: white;
}

.btn--primary:hover {
    background-color: #005a87;
    color: white;
}

.btn--secondary {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn--secondary:hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.btn--disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn--disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* SOW Request Status */
.sow-request-status {
    margin-top: 2rem;
    padding: 32px 28px;
    background-color: #F3F3F2;
    border-radius: 8px;
}

.sow-status-message {
    color: #41413F;
    font-family: "F37 Bolton";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 17.6px */
    text-align: left;
    margin-bottom: 8px !important;
}

.sow-request-history h4 {
    margin: 0 0 0.75rem 0;
    color: #232323;
    font-family: "IBM Plex Mono";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 17.6px */
    letter-spacing: -0.16px;
    text-transform: uppercase;
    text-align: left;
}

@media screen and (min-width: 768px) {
    .sow-request-history h4 {
        font-size: 14px;
        line-height: 110%; /* 15.4px */
        letter-spacing: -0.14px;
        text-transform: uppercase;
    }
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px dashed #D9D9D9;
}

@media screen and (min-width: 768px) {
    .history-list {
        margin-top: 20px;
    }
}

.history-list li {
    position: relative;
    padding: 11px 0 11px 24px;
    color: #4F4F4F;
    font-family: "F37 Bolton";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    list-style: none;
    text-align: left;
    border-bottom: 1px solid #DADAD7;
}

.history-list li::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 12px;
    width: 5px;
    height: 5px;
    background-color: #6c757d;
    transform: translate(-50%, -5px);
    border-radius: 50%;
}


.history-list li:last-child {
    border-bottom: none;
}

.history-list li strong {
    color: #495057;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal__content {
    position: relative;
    background: var(--black);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.modal__header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--white);
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    color: var(--white);
}

.modal__body {
    padding: 1.5rem;
}

.modal__body p {
    margin-bottom: 1.5rem;
    color: var(--white-2-blur);
}

.modal form {
    padding-top: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--white-2-blur);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: var(--black);
    color: var(--white-2-blur);
    &::placeholder {
        color: var(--white-2-blur);
    }
}

.form-group input:focus {
    outline: none;
    border-color: var(--white-2-blur);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
    background-color: var(--black);
    color: var(--white-2-blur);
}

.estimate-info {
    background-color: var(--white-1-blur);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0;
    color: var(--white);
}

.modal__footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e1e5e9;
    background-color: var(--black);
}

/* Loading state */
.btn--loading {
    position: relative;
    color: transparent;
}

.btn--loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification--success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.notification--error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal__content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal__footer {
        flex-direction: column;
    }
    
    .modal__footer .btn {
        width: 100%;
    }
}
