.imatrix-dsa-portal {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: inherit;
}

.dsa-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #0073aa;
}

.dsa-header h1 {
    color: #23282d;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.dsa-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.dsa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dsa-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dsa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.dsa-card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.dsa-card h3 {
    color: #23282d;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.dsa-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

.dsa-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.dsa-btn-primary {
    background-color: #0073aa;
    color: white;
}

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

.dsa-btn-submit {
    background-color: #28a745;
    color: white;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.dsa-btn-submit:hover {
    background-color: #218838;
}

.dsa-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.dsa-modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 92%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.dsa-modal-close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    color: #aaa;
    font-size: 1.75rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.dsa-modal-close:hover {
    color: #333;
}

#dsa-modal-title {
    margin: 0 0 1.25rem;
    color: #23282d;
    font-size: 1.25rem;
}

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

.dsa-form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.dsa-form-group input[type="email"],
.dsa-form-group input[type="text"],
.dsa-form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dsa-form-group input:focus,
.dsa-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dsa-consent {
    margin-top: 1.25rem;
}

.dsa-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.dsa-checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.dsa-form-actions {
    margin-top: 1.5rem;
}

.dsa-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
    line-height: 1.4;
}

.dsa-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dsa-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .imatrix-dsa-portal {
        padding: 0 1rem;
    }
    .dsa-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .dsa-modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
    .dsa-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .dsa-card {
        padding: 1.25rem;
    }
    .dsa-card-icon {
        font-size: 2rem;
    }
}
