/* DeepLeaf QR Contact Exchange */
* { margin: 0; padding: 0; box-sizing: border-box; }

.dlqr-container {
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dlqr-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.dlqr-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

/* Form styles */
.dlqr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dlqr-input {
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.dlqr-input:focus {
    border-color: #4A7C59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.dlqr-input::placeholder {
    color: #aaa;
}

.dlqr-btn {
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    background: #4A7C59;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.dlqr-btn:hover {
    background: #3d6a4a;
}

.dlqr-btn:active {
    transform: scale(0.98);
}

.dlqr-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dlqr-msg {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
}

.dlqr-msg.error {
    color: #e74c3c;
}

.dlqr-msg.success {
    color: #4A7C59;
}

/* Steps */
.dlqr-form-step {
    display: none;
}

.dlqr-form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact cards */
.dlqr-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.dlqr-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.dlqr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.dlqr-card:active {
    transform: scale(0.98);
}

.dlqr-card.saved {
    border-color: #4A7C59;
}

.dlqr-card-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    flex-shrink: 0;
}

.dlqr-card-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A7C59, #6A9FB5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.dlqr-card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dlqr-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlqr-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlqr-card-org-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.dlqr-card-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.dlqr-card-org {
    font-size: 14px;
    color: #4A7C59;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlqr-card-contact {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlqr-card-saved-badge {
    background: #4A7C59;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 500px) {
    .dlqr-container {
        padding: 30px 20px;
    }
    
    .dlqr-title {
        font-size: 24px;
    }
    
    .dlqr-card {
        padding: 16px;
    }
    
    .dlqr-card-photo,
    .dlqr-card-photo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .dlqr-card-name {
        font-size: 16px;
    }
}
