/* Contracts Section Styles */
.contracts {
    padding: 100px 0;
    color: #fff;
    position: relative;
}

.contracts-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Contract Card Dark Theme */
/* Contract Card Dark Theme */
.contracts-grid .contract-card {
    background: rgba(5, 16, 32, 0.85) !important;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.contracts-grid .contract-card:hover {
    transform: translateY(-2px);
    background: rgba(5, 16, 32, 0.95) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 157, 0.15);
}

.contract-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contract-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.contract-details {
    background: rgba(0, 255, 157, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.detail-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-value {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-color);
}

.contract-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.contract-qr-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.1);
    border-color: var(--primary-color);
}

.qr-instructions {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
}

.modal-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-qr-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-large {
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    /* Ensure minimum height */
}

.qr-code-large img {
    max-width: 100%;
    max-height: 100%;
}

.contracts-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.info-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.info-content ol {
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.custom-contract {
    background: rgba(0, 255, 157, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.custom-contract h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.custom-contract p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Contract Modal Styles */
.contract-details-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    flex: 1;
    font-weight: 600;
    color: var(--light-text);
}

.detail-row .detail-value {
    flex: 2;
    color: var(--primary-color);
}

.specialist-profile {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 20px;
}

.specialist-profile p {
    line-height: 1.6;
}


/* QR code in modal body */
.modal-body .qr-code-large {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: default !important;
    pointer-events: none;
    /* Disable all pointer events */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-body .qr-code-large img {
    cursor: default !important;
    pointer-events: none;
    /* Disable all pointer events */
    max-width: 100%;
    height: auto;
    display: block;
}

.modal-body .qr-instructions {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-body-flex {
        flex-direction: column;
    }

    .embedded-qr {
        width: 100%;
        margin-top: 30px;
    }
}


/* Responsive Styles */
@media (max-width: 992px) {
    .contracts-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contracts-grid {
        grid-template-columns: 1fr;
    }

    .contract-card {
        padding: 20px;
    }

    #large-qr-code {
        width: 250px;
        height: 250px;
    }
}